[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12146] trunk/blender/source/blender/src/ drawobject.c: mistake when setting the active vert color ( was setting the color value outside the range of the value)
Campbell Barton
cbarton at metavr.com
Tue Sep 25 16:39:05 CEST 2007
Revision: 12146
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12146
Author: campbellbarton
Date: 2007-09-25 16:39:04 +0200 (Tue, 25 Sep 2007)
Log Message:
-----------
mistake when setting the active vert color (was setting the color value outside the range of the value)
Modified Paths:
--------------
trunk/blender/source/blender/src/drawobject.c
Modified: trunk/blender/source/blender/src/drawobject.c
===================================================================
--- trunk/blender/source/blender/src/drawobject.c 2007-09-25 11:46:28 UTC (rev 12145)
+++ trunk/blender/source/blender/src/drawobject.c 2007-09-25 14:39:04 UTC (rev 12146)
@@ -1457,17 +1457,16 @@
/* draw active larger - need to stop/start point drawing for this :/ */
if (eve==data->eve_act) {
float size = BIF_GetThemeValuef(TH_VERTEX_SIZE);
- unsigned char col[3];
- BIF_GetThemeColor4ubv(TH_EDITMESH_ACTIVE, (char *)col);
- glColor4ubv(col);
+ BIF_ThemeColor4(TH_EDITMESH_ACTIVE);
bglEnd();
+
glPointSize(size+3);
bglBegin(GL_POINTS);
-
bglVertex3fv(co);
-
bglEnd();
+
+ BIF_ThemeColor4(TH_VERTEX_SELECT);
glPointSize(size);
bglBegin(GL_POINTS);
} else {
More information about the Bf-blender-cvs
mailing list