Using Weight/Vertex Paint, the current color was not reset, causing Object
name or axes to draw in random colors.
This commit is contained in:
Ton Roosendaal 2006-06-26 08:16:16 +00:00
parent 7f3ce43f04
commit 098c73f441

@ -1911,11 +1911,7 @@ static void draw_mesh_fancy(Base *base, DerivedMesh *baseDM, DerivedMesh *dm, in
}
}
if (draw_wire) {
/* If drawing wire and drawtype is not OB_WIRE then we are
* overlaying the wires.
*/
/* set default draw color back for wire or for draw-extra later on */
if (dt!=OB_WIRE) {
if(base->flag & SELECT) {
@ -1931,7 +1927,13 @@ static void draw_mesh_fancy(Base *base, DerivedMesh *baseDM, DerivedMesh *dm, in
else
BIF_ThemeColor(TH_WIRE);
}
}
if (draw_wire) {
/* If drawing wire and drawtype is not OB_WIRE then we are
* overlaying the wires.
*/
if (dt!=OB_WIRE) {
bglPolygonOffset(1.0);
glDepthMask(0); // disable write in zbuffer, selected edge wires show better
}