Reported on IRC, Wavez:
Objects with negative scale draw TFaces front/back inverted in FaceSelect mode. Added same solution as 2 releases before for Solid draw mode.
This commit is contained in:
@@ -878,6 +878,9 @@ void draw_tface_mesh(Object *ob, Mesh *me, int dt)
|
|||||||
|
|
||||||
/* first all texture polys */
|
/* first all texture polys */
|
||||||
|
|
||||||
|
if(ob->transflag & OB_NEG_SCALE) glFrontFace(GL_CW);
|
||||||
|
else glFrontFace(GL_CCW);
|
||||||
|
|
||||||
glCullFace(GL_BACK); glEnable(GL_CULL_FACE);
|
glCullFace(GL_BACK); glEnable(GL_CULL_FACE);
|
||||||
if(G.vd->drawtype==OB_TEXTURE) istex= 1;
|
if(G.vd->drawtype==OB_TEXTURE) istex= 1;
|
||||||
else istex= 0;
|
else istex= 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user