mistake when setting the active vert color (was setting the color value outside the range of the value)

This commit is contained in:
2007-09-25 14:39:04 +00:00
parent 98c87f16cd
commit cac6bb259e

View 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 {