mistake when setting the active vert color (was setting the color value outside the...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 25 Sep 2007 14:39:04 +0000 (14:39 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 25 Sep 2007 14:39:04 +0000 (14:39 +0000)
source/blender/src/drawobject.c

index 8e4fc6c72ac73f37171da20ab0fc06968fb67d34..6be61478593d213ec6d5d527931115896e6ff91c 100644 (file)
@@ -1457,17 +1457,16 @@ static void draw_dm_verts__mapFunc(void *userData, int index, float *co, float *
                /* 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 {