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>2007-01-23 13:03:45 +0300
committerTon Roosendaal <ton@blender.org>2007-01-23 13:03:45 +0300
commit39d1d30350edc11b0b4d5a7563f88cbbb0bcb05e (patch)
treefa63829d259c17ae22184d08ce428b75b21065ac /source/blender/src/drawobject.c
parent43b390c9361f8f66702fbd03217d7a786673b7e5 (diff)
Bugfix #5786
Shaded drawmode, objects with negative scale, did not draw correct. Error already since 2.37 (commit of may 2005)
Diffstat (limited to 'source/blender/src/drawobject.c')
-rw-r--r--source/blender/src/drawobject.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c
index e4d0f3a2aa3..32b803c7eb9 100644
--- a/source/blender/src/drawobject.c
+++ b/source/blender/src/drawobject.c
@@ -1991,7 +1991,10 @@ static void draw_mesh_fancy(Base *base, int dt, int flag)
totedge = me->totedge;
totface = me->totface;
#endif
- glFrontFace((ob->transflag&OB_NEG_SCALE)?GL_CW:GL_CCW);
+
+ /* vertexpaint, faceselect wants this, but it doesnt work for shaded? */
+ if(dt!=OB_SHADED)
+ glFrontFace((ob->transflag&OB_NEG_SCALE)?GL_CW:GL_CCW);
// Unwanted combination.
if (ob==OBACT && (G.f&G_FACESELECT)) draw_wire = 0;