Tsk! glGetFloatv() gives alpha too for GL_CURRENT_COLOR, so a four long vector is needed!
This commit is contained in:
@@ -1894,7 +1894,7 @@ static void draw_pose_bones(Scene *scene, View3D *v3d, ARegion *ar, Base *base,
|
||||
float vec[3];
|
||||
|
||||
unsigned char col[4];
|
||||
float col_f[3];
|
||||
float col_f[4];
|
||||
glGetFloatv(GL_CURRENT_COLOR, col_f); /* incase this is not set below */
|
||||
rgb_float_to_byte(col_f, col);
|
||||
col[3]= 255;
|
||||
|
||||
Reference in New Issue
Block a user