Reported on IRC, Wavez:
authorTon Roosendaal <ton@blender.org>
Thu, 2 Dec 2004 16:08:49 +0000 (16:08 +0000)
committerTon Roosendaal <ton@blender.org>
Thu, 2 Dec 2004 16:08:49 +0000 (16:08 +0000)
Objects with negative scale draw TFaces front/back inverted in FaceSelect
mode. Added same solution as 2 releases before for Solid draw mode.

source/blender/src/drawmesh.c

index a52ac09408172fb4c6ca389f3e82219e4575cdcb..e0e0698279da1966d2f9563bdd80c41f79bc9455 100644 (file)
@@ -878,6 +878,9 @@ void draw_tface_mesh(Object *ob, Mesh *me, int dt)
        
        /* first all texture polys */
        
+       if(ob->transflag & OB_NEG_SCALE) glFrontFace(GL_CW);
+       else glFrontFace(GL_CCW);
+       
        glCullFace(GL_BACK); glEnable(GL_CULL_FACE);
        if(G.vd->drawtype==OB_TEXTURE) istex= 1;
        else istex= 0;