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:
Jeroen Bakker 2021-08-31 09:58:42 +02:00
parent fa4a35d4c4
commit 8e00db4296
Notes: blender-bot 2023-02-14 08:28:46 +01:00
Referenced by commit a7ee49d065, Fix crash in recent commit.
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}