[Bf-blender-cvs] [5d75672720c] master: DRW: tweak paint edge drawing to show all unselected edges

Campbell Barton noreply at git.blender.org
Fri Jul 5 10:44:43 CEST 2019


Commit: 5d75672720ceda096b12763ce814fc4f32aa5fa5
Author: Campbell Barton
Date:   Fri Jul 5 18:39:42 2019 +1000
Branches: master
https://developer.blender.org/rB5d75672720ceda096b12763ce814fc4f32aa5fa5

DRW: tweak paint edge drawing to show all unselected edges

32d3bce1ea27c changed behavior when it shouldn't have.

===================================================================

M	source/blender/draw/intern/draw_cache_impl_mesh.c

===================================================================

diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c
index 37bc46bc734..3b5959f1c59 100644
--- a/source/blender/draw/intern/draw_cache_impl_mesh.c
+++ b/source/blender/draw/intern/draw_cache_impl_mesh.c
@@ -3848,7 +3848,9 @@ static void mesh_create_loops_lines_paint_mask(MeshRenderData *rdata, GPUIndexBu
           const MLoop *mloop = &rdata->mloop[loop_index_curr];
           const int e_a = mloop->e * 2;
           const int e_b = e_a + 1;
-          if (BLI_BITMAP_TEST(edges_used, e_a) && !BLI_BITMAP_TEST(edges_used, e_b)) {
+
+          /* Draw if a boundary or entirely unselected. */
+          if (!BLI_BITMAP_TEST(edges_used, e_b)) {
             GPU_indexbuf_add_line_verts(&elb, loop_index_curr, loop_index_next);
           }
         }



More information about the Bf-blender-cvs mailing list