diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-08 06:36:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-08 06:36:47 +0300 |
commit | 31b8dbf8c064c1bf0102af1941ea2163ece78a26 (patch) | |
tree | 53ee40e317e4feab9864a6257c74e11254d4be75 /source/blender/editors/mesh/editmesh_extrude.c | |
parent | cb909afa12edb074ab02f2de4e40ea8e963b583d (diff) |
Fix extrude gizmo redo after selection glitch
It was possible to adjust extrusion after selection.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_extrude.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_extrude.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_extrude.c b/source/blender/editors/mesh/editmesh_extrude.c index d54437913f4..fa6a1f7b60c 100644 --- a/source/blender/editors/mesh/editmesh_extrude.c +++ b/source/blender/editors/mesh/editmesh_extrude.c @@ -567,7 +567,9 @@ static void gizmo_mesh_extrude_refresh(const bContext *C, wmGizmoGroup *gzgroup) WM_gizmo_set_matrix_location(man->adjust_xyz_no[i], tbounds.center); } - wmOperator *op = WM_operator_last_redo(C); + /* Adjust current operator. */ + /* Don't use 'WM_operator_last_redo' because selection actions will be ignored. */ + wmOperator *op = CTX_wm_manager(C)->operators.last; bool has_redo = (op && op->type == man->ot_extrude); /* Un-hide. */ |