[Bf-blender-cvs] [1789c1e90df] blender2.8: Gizmo: hide redo gizmo when any operator runs
Campbell Barton
noreply at git.blender.org
Thu Sep 20 07:34:43 CEST 2018
Commit: 1789c1e90df373293338dadd4f7140c9995c456f
Author: Campbell Barton
Date: Thu Sep 20 15:41:18 2018 +1000
Branches: blender2.8
https://developer.blender.org/rB1789c1e90df373293338dadd4f7140c9995c456f
Gizmo: hide redo gizmo when any operator runs
===================================================================
M source/blender/editors/util/gizmo_utils.c
===================================================================
diff --git a/source/blender/editors/util/gizmo_utils.c b/source/blender/editors/util/gizmo_utils.c
index 957ae221b0b..86eb2c1c003 100644
--- a/source/blender/editors/util/gizmo_utils.c
+++ b/source/blender/editors/util/gizmo_utils.c
@@ -42,7 +42,14 @@ bool ED_gizmo_poll_or_unlink_delayed_from_operator(
const bContext *C, wmGizmoGroupType *gzgt,
const char *idname)
{
+#if 0
+ /* Causes selection to continue showing the last gizmo. */
wmOperator *op = WM_operator_last_redo(C);
+#else
+ wmWindowManager *wm = CTX_wm_manager(C);
+ wmOperator *op = wm->operators.last;
+#endif
+
if (op == NULL || !STREQ(op->type->idname, idname)) {
WM_gizmo_group_type_unlink_delayed_ptr(gzgt);
return false;
More information about the Bf-blender-cvs
mailing list