[Bf-blender-cvs] [31b8dbf8c06] blender2.8: Fix extrude gizmo redo after selection glitch

Campbell Barton noreply at git.blender.org
Sat Sep 8 05:27:47 CEST 2018


Commit: 31b8dbf8c064c1bf0102af1941ea2163ece78a26
Author: Campbell Barton
Date:   Sat Sep 8 13:36:47 2018 +1000
Branches: blender2.8
https://developer.blender.org/rB31b8dbf8c064c1bf0102af1941ea2163ece78a26

Fix extrude gizmo redo after selection glitch

It was possible to adjust extrusion after selection.

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

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

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

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. */



More information about the Bf-blender-cvs mailing list