Fix T66332: Move gizmo stays in place when vertex is deleted
authorPhilipp Oeser <info@graphics-engineer.com>
Wed, 3 Jul 2019 17:03:58 +0000 (19:03 +0200)
committerPhilipp Oeser <info@graphics-engineer.com>
Wed, 3 Jul 2019 17:48:57 +0000 (19:48 +0200)
Reviewers: brecht

Maniphest Tasks: T66332

Differential Revision: https://developer.blender.org/D5177

source/blender/editors/mesh/editmesh_tools.c

index fcd6a98808e2e3da55d3b16f912b190ac1eafef9..a5790022f43a3554d925efe3fdf72e1466056538 100644 (file)
@@ -534,6 +534,9 @@ static int edbm_delete_exec(bContext *C, wmOperator *op)
     EDBM_flag_disable_all(em, BM_ELEM_SELECT);
 
     EDBM_update_generic(em, true, true);
+
+    DEG_id_tag_update(obedit->data, ID_RECALC_SELECT);
+    WM_event_add_notifier(C, NC_GEOM | ND_SELECT, obedit->data);
   }
 
   MEM_freeN(objects);