[Bf-blender-cvs] [44231386e42] blender-v2.82-release: Fix T72250: Select Boundary Loop

Jeroen Bakker noreply at git.blender.org
Mon Jan 13 10:54:24 CET 2020


Commit: 44231386e42bc096ef0891e94e70b95263aa80d1
Author: Jeroen Bakker
Date:   Mon Jan 13 10:48:43 2020 +0100
Branches: blender-v2.82-release
https://developer.blender.org/rB44231386e42bc096ef0891e94e70b95263aa80d1

Fix T72250: Select Boundary Loop

Edge Index display were not showing up after performing
"Select Boundary Loops" when in face selection mode. The operation
tagged the mesh that the selection was changed, but in the end this
didn't do anything within the depsgraph.

The fix changes this to recalc the geometry of the object. What also
syncs the selectmode flags. A better solution would be to update the
select flags only. But that could be done as future work when we have a
performance problems.

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

M	source/blender/editors/mesh/editmesh_select.c

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

diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c
index ffbcacafd44..6eabb079f4e 100644
--- a/source/blender/editors/mesh/editmesh_select.c
+++ b/source/blender/editors/mesh/editmesh_select.c
@@ -4957,7 +4957,7 @@ static int edbm_region_to_loop_exec(bContext *C, wmOperator *UNUSED(op))
       EDBM_selectmode_to_scene(C);
     }
 
-    DEG_id_tag_update(obedit->data, ID_RECALC_SELECT);
+    DEG_id_tag_update(&obedit->id, ID_RECALC_GEOMETRY);
     WM_event_add_notifier(C, NC_GEOM | ND_SELECT, obedit->data);
   }
   MEM_freeN(objects);



More information about the Bf-blender-cvs mailing list