[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25989] trunk/blender/source/blender/ editors/space_view3d/drawobject.c: enable smooth shading of particle colors in particle editmode, for weight painting and selection.

Campbell Barton ideasman42 at gmail.com
Thu Jan 14 10:01:57 CET 2010


Revision: 25989
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25989
Author:   campbellbarton
Date:     2010-01-14 10:01:57 +0100 (Thu, 14 Jan 2010)

Log Message:
-----------
enable smooth shading of particle colors in particle editmode, for weight painting and selection.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_view3d/drawobject.c

Modified: trunk/blender/source/blender/editors/space_view3d/drawobject.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/drawobject.c	2010-01-14 08:53:10 UTC (rev 25988)
+++ trunk/blender/source/blender/editors/space_view3d/drawobject.c	2010-01-14 09:01:57 UTC (rev 25989)
@@ -3811,11 +3811,11 @@
 
 	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 @@
 	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)





More information about the Bf-blender-cvs mailing list