diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-20 08:41:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-20 08:45:16 +0300 |
commit | 1789c1e90df373293338dadd4f7140c9995c456f (patch) | |
tree | 9278ea4c3371dd3dfd52a205d90b91e17c6c0d54 /source/blender/editors/util | |
parent | e4c53d9163bbb4e6fa2288757e34fd24d8dc0b63 (diff) |
Gizmo: hide redo gizmo when any operator runs
Diffstat (limited to 'source/blender/editors/util')
-rw-r--r-- | source/blender/editors/util/gizmo_utils.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; |