diff options
author | Jeroen Bakker <jeroen@blender.org> | 2020-04-02 16:10:56 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-04-02 16:12:32 +0300 |
commit | 88362565f688028a4a098a7911534e1d757d1c69 (patch) | |
tree | 32df2114cf1aab57d2c3821dccec06e58c038ec7 /source/blender/draw/intern/draw_manager.c | |
parent | f5e4f20dc1439bee3a76e6a850e5af66acc09036 (diff) |
Fix T72688: Vertex Group Weights in Edit Mode Occludes In Front Armatures
Due to legacy this overlay was implemented twice (Edit Mesh and Weight
Painting) with different results. This patch consolidates both drawing
and uses only the Weight Painting drawing.
Diffstat (limited to 'source/blender/draw/intern/draw_manager.c')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index b265035f449..1b169dbee1d 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -145,11 +145,8 @@ bool DRW_object_is_renderable(const Object *ob) if (ob->type == OB_MESH) { if ((ob == DST.draw_ctx.object_edit) || DRW_object_is_in_edit_mode(ob)) { - View3D *v3d = DST.draw_ctx.v3d; - const int mask = (V3D_OVERLAY_EDIT_OCCLUDE_WIRE | V3D_OVERLAY_EDIT_WEIGHT); - - if (v3d && v3d->overlay.edit_flag & mask) { + if (v3d && v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_OCCLUDE_WIRE) { return false; } } |