forked from bartvdbraak/blender
fix [#31368] No masking drawn in Weightpaint-mode when displayed as wireframe
This commit is contained in:
parent
b651f61278
commit
94fa7060a8
@ -6545,8 +6545,10 @@ void draw_object(Scene *scene, ARegion *ar, View3D *v3d, Base *base, int flag)
|
||||
zbufoff = 1;
|
||||
dt = OB_SOLID;
|
||||
}
|
||||
else if (ob->mode & (OB_MODE_VERTEX_PAINT | OB_MODE_WEIGHT_PAINT))
|
||||
|
||||
if (ob->mode & (OB_MODE_VERTEX_PAINT | OB_MODE_WEIGHT_PAINT)) {
|
||||
dt = OB_PAINT;
|
||||
}
|
||||
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user