diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-08-31 10:58:42 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-08-31 11:02:45 +0300 |
commit | 8e00db42961297facd521139762fe8c42042fc5c (patch) | |
tree | fc031bd476727224dd9bec8e64bc281cd72bf5e1 /source/blender/draw/engines | |
parent | fa4a35d4c4eea7cd0c4a9a8bf448afd27c273695 (diff) |
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.
Diffstat (limited to 'source/blender/draw/engines')
-rw-r--r-- | source/blender/draw/engines/overlay/overlay_paint.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_paint.c b/source/blender/draw/engines/overlay/overlay_paint.c index 60a90616d29..c5f7cdf4f8a 100644 --- a/source/blender/draw/engines/overlay/overlay_paint.c +++ b/source/blender/draw/engines/overlay/overlay_paint.c @@ -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; } |