fix [#31368] No masking drawn in Weightpaint-mode when displayed as wireframe

This commit is contained in:
Campbell Barton 2012-05-09 06:22:29 +00:00
parent b651f61278
commit 94fa7060a8

@ -6545,8 +6545,10 @@ void draw_object(Scene *scene, ARegion *ar, View3D *v3d, Base *base, int flag)
zbufoff = 1; zbufoff = 1;
dt = OB_SOLID; 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; dt = OB_PAINT;
}
glEnable(GL_DEPTH_TEST); glEnable(GL_DEPTH_TEST);
} }