From 53082cf0f150eb9c815027cf316922df11fce352 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Thu, 26 May 2005 21:00:50 +0000 Subject: Bug fix #2575 VertexPaint, FaceSelect draws with 'culled faces' but should therefor check for negative scaling as well, set the glFrontFace() OK. --- source/blender/src/drawobject.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/src/drawobject.c') diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c index dfb955397b3..6ed33a42ef0 100644 --- a/source/blender/src/drawobject.c +++ b/source/blender/src/drawobject.c @@ -1736,6 +1736,8 @@ static void draw_mesh_fancy(Object *ob, DerivedMesh *baseDM, DerivedMesh *realDM float *obExtVerts; DerivedMesh *dm = realDM?realDM:baseDM; + glFrontFace((ob->transflag&OB_NEG_SCALE)?GL_CW:GL_CCW); + dl = find_displist(&ob->disp, DL_VERTS); obExtVerts = dl?dl->verts:NULL; -- cgit v1.2.3