Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-07-05 11:39:42 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-07-05 11:43:32 +0300
commit5d75672720ceda096b12763ce814fc4f32aa5fa5 (patch)
tree7c55a6353e6c352b1a9b20a593bc6ea2d4aa643c /source
parent1468f77a290610565de3fb126b02789de22c3a8e (diff)
DRW: tweak paint edge drawing to show all unselected edges
32d3bce1ea27c changed behavior when it shouldn't have.
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/intern/draw_cache_impl_mesh.c4
1 files changed, 3 insertions, 1 deletions
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);
}
}