Commit: 8e00db42961297facd521139762fe8c42042fc5c
Author: Jeroen Bakker
Date: Tue Aug 31 09:58:42 2021 +0200
Branches: master
https://developer.blender.org/rB8e00db42961297facd521139762fe8c42042fc5c
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.
===================================================================
M source/blender/draw/engines/overlay/overlay_paint.c
===================================================================
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;
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs