forked from bartvdbraak/blender
Bugfix #4471
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:
parent
7f3ce43f04
commit
098c73f441
@ -1911,11 +1911,7 @@ static void draw_mesh_fancy(Base *base, DerivedMesh *baseDM, DerivedMesh *dm, in
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (draw_wire) {
|
/* set default draw color back for wire or for draw-extra later on */
|
||||||
/* If drawing wire and drawtype is not OB_WIRE then we are
|
|
||||||
* overlaying the wires.
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (dt!=OB_WIRE) {
|
if (dt!=OB_WIRE) {
|
||||||
if(base->flag & SELECT) {
|
if(base->flag & SELECT) {
|
||||||
|
|
||||||
@ -1931,7 +1927,13 @@ static void draw_mesh_fancy(Base *base, DerivedMesh *baseDM, DerivedMesh *dm, in
|
|||||||
else
|
else
|
||||||
BIF_ThemeColor(TH_WIRE);
|
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);
|
bglPolygonOffset(1.0);
|
||||||
glDepthMask(0); // disable write in zbuffer, selected edge wires show better
|
glDepthMask(0); // disable write in zbuffer, selected edge wires show better
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user