Fix: Weightpaint overlay not visible when display type wire/boundbox.
When the object display type was set to wireframe or boundbox the depth buffer wasn't updated resulting in not visible weightpaint overlay. Thanks to Demeter Dzadik for mentioning it.
This commit is contained in:
parent
fa4a35d4c4
commit
8e00db4296
Notes:
blender-bot
2023-02-14 08:28:46 +01:00
Referenced by commit a7ee49d065
, Fix crash in recent commit.
|
@ -55,6 +55,12 @@ static bool paint_object_is_rendered_transparent(View3D *v3d, Object *ob)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Check object display types. */
|
||||
if (ELEM(ob->dt, OB_WIRE, OB_BOUNDBOX)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue