Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2005-05-27 01:00:50 +0400
committerTon Roosendaal <ton@blender.org>2005-05-27 01:00:50 +0400
commit53082cf0f150eb9c815027cf316922df11fce352 (patch)
tree9c8bac40d7b15e7ed78789acbb94a79eea32dc91 /source/blender/src/drawobject.c
parent8f5baf019b01e614a1db065062b06b354266abdc (diff)
Bug fix #2575
VertexPaint, FaceSelect draws with 'culled faces' but should therefor check for negative scaling as well, set the glFrontFace() OK.
Diffstat (limited to 'source/blender/src/drawobject.c')
-rw-r--r--source/blender/src/drawobject.c2
1 files changed, 2 insertions, 0 deletions
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;