[Bf-blender-cvs] [700c69ad08a] master: Fix T64283: Gizmo doesn't update after click-extrude

Campbell Barton noreply at git.blender.org
Wed May 8 07:15:44 CEST 2019


Commit: 700c69ad08ab9a542ea19d49fad9f82fce3fe14c
Author: Campbell Barton
Date:   Wed May 8 15:14:23 2019 +1000
Branches: master
https://developer.blender.org/rB700c69ad08ab9a542ea19d49fad9f82fce3fe14c

Fix T64283: Gizmo doesn't update after click-extrude

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

M	source/blender/editors/curve/editcurve.c
M	source/blender/editors/mesh/editmesh_extrude.c

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

diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c
index a787b45c13c..65f502d5cd2 100644
--- a/source/blender/editors/curve/editcurve.c
+++ b/source/blender/editors/curve/editcurve.c
@@ -5551,6 +5551,8 @@ static int add_vertex_exec(bContext *C, wmOperator *op)
     }
 
     WM_event_add_notifier(C, NC_GEOM | ND_DATA, obedit->data);
+    WM_event_add_notifier(C, NC_GEOM | ND_SELECT, obedit->data);
+
     DEG_id_tag_update(obedit->data, 0);
 
     return OPERATOR_FINISHED;
diff --git a/source/blender/editors/mesh/editmesh_extrude.c b/source/blender/editors/mesh/editmesh_extrude.c
index 82cff8363f8..0da4d20c6b5 100644
--- a/source/blender/editors/mesh/editmesh_extrude.c
+++ b/source/blender/editors/mesh/editmesh_extrude.c
@@ -36,6 +36,7 @@
 #include "RNA_access.h"
 
 #include "WM_types.h"
+#include "WM_api.h"
 
 #include "ED_mesh.h"
 #include "ED_screen.h"
@@ -860,6 +861,9 @@ static int edbm_dupli_extrude_cursor_invoke(bContext *C, wmOperator *op, const w
     EDBM_mesh_normals_update(vc.em);
 
     EDBM_update_generic(vc.em, true, true);
+
+    WM_event_add_notifier(C, NC_GEOM | ND_DATA, obedit->data);
+    WM_event_add_notifier(C, NC_GEOM | ND_SELECT, obedit->data);
   }
   MEM_freeN(objects);



More information about the Bf-blender-cvs mailing list