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:
authorCampbell Barton <ideasman42@gmail.com>2010-01-14 12:01:57 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-01-14 12:01:57 +0300
commit6b0e2ecd6c739a176e8d48eabebfa8af5aca11ed (patch)
tree1e73293434e2f4d0973bfad1d187f5495c2b4cc0 /source/blender/editors
parentc1f2fd0a464c62e01e78f3b8f544219fa087ffc2 (diff)
enable smooth shading of particle colors in particle editmode, for weight painting and selection.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_view3d/drawobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index dd43c34c4dc..a5a82b22e27 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -3811,11 +3811,11 @@ static void draw_ptcache_edit(Scene *scene, View3D *v3d, RegionView3D *rv3d, Obj
glEnable(GL_COLOR_MATERIAL);
glColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE);
+ glShadeModel(GL_SMOOTH);
if(pset->brushtype == PE_BRUSH_WEIGHT) {
glLineWidth(2.0f);
glDisable(GL_LIGHTING);
- /* TODO, nice color blending */
}
cache=edit->pathcache;
@@ -3924,9 +3924,9 @@ static void draw_ptcache_edit(Scene *scene, View3D *v3d, RegionView3D *rv3d, Obj
glDisableClientState(GL_COLOR_ARRAY);
glDisableClientState(GL_NORMAL_ARRAY);
glDisableClientState(GL_VERTEX_ARRAY);
+ glShadeModel(GL_FLAT);
glEnable(GL_DEPTH_TEST);
glLineWidth(1.0f);
-
glPointSize(1.0);
}
//static void ob_draw_RE_motion(float com[3],float rotscale[3][3],float tw,float th)