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>2004-10-31 16:51:36 +0300
committerTon Roosendaal <ton@blender.org>2004-10-31 16:51:36 +0300
commit6c04fe887e753e73d08db4d2f1497eb03967afc0 (patch)
tree58512824a50f3fe1b5846ff01956c1a7702af41c /source/blender/src/drawobject.c
parentc00d9217399f75fed373f4835cb5edbe999ee2ad (diff)
Just some nice updates in drawing (extruded) Curve objects;
- display of 'smooth' or 'solid' is correct now - standard bevel and extrude displays in 'smooth' correctly now (with sharp edges where you expect it)
Diffstat (limited to 'source/blender/src/drawobject.c')
-rw-r--r--source/blender/src/drawobject.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c
index 38b3a8396d5..4a2c5fbd8f7 100644
--- a/source/blender/src/drawobject.c
+++ b/source/blender/src/drawobject.c
@@ -1501,7 +1501,6 @@ static void drawDispListsolid(ListBase *lb, Object *ob)
if(lb==0) return;
- glShadeModel(GL_SMOOTH);
glEnable(GL_LIGHTING);
if(ob->transflag & OB_NEG_SCALE) glFrontFace(GL_CW);
@@ -1516,6 +1515,9 @@ static void drawDispListsolid(ListBase *lb, Object *ob)
case DL_SURF:
set_gl_material(dl->col+1);
+
+ if(dl->rt & CU_SMOOTH) glShadeModel(GL_SMOOTH);
+ else glShadeModel(GL_FLAT);
for(a=0; a<dl->parts; a++) {