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.
This commit is contained in:
Jeroen Bakker 2020-01-13 10:48:43 +01:00
parent 1b86b3c0f4
commit 44231386e4
Notes: blender-bot 2023-02-14 05:41:57 +01:00
Referenced by issue #72250, Edge Index display not showing after "Select Boundary Loops" from a face selection
1 changed files with 1 additions and 1 deletions

View File

@ -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);