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-29 14:47:36 +0400
committerTon Roosendaal <ton@blender.org>2005-05-29 14:47:36 +0400
commitdd79f7c8a8edae3f949c6006390b77ddb4634aef (patch)
tree08ece1771fedbc5c720b392e1d22aae2203bcd5b /source/blender/blenkernel
parentc7b19d50661d8bb0ad5af1600e9eb8e5b3982917 (diff)
Bug fix #2638
More derivedmesh culling confusement... it should be enabled when double- sided shaded lighting is used...
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/DerivedMesh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/DerivedMesh.c b/source/blender/blenkernel/intern/DerivedMesh.c
index f5926501f4d..fde90485536 100644
--- a/source/blender/blenkernel/intern/DerivedMesh.c
+++ b/source/blender/blenkernel/intern/DerivedMesh.c
@@ -255,7 +255,8 @@ static void meshDM_drawFacesColored(DerivedMesh *dm, int useTwoSide, unsigned ch
/* there's a conflict here... twosided colors versus culling...? */
/* defined by history, only texture faces have culling option */
/* we need that as mesh option builtin, next to double sided lighting */
- // glEnable(GL_CULL_FACE);
+ if(col1 && col2)
+ glEnable(GL_CULL_FACE);
glShadeModel(GL_SMOOTH);
glBegin(glmode=GL_QUADS);