diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-05-27 05:24:29 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-05-27 05:24:29 +0300 |
commit | 7ed7901c00867a951bd2bb0e179d7b087cd68d9d (patch) | |
tree | e56516b474129832741940db72cea13bcc933522 /source/blender/windowmanager/intern/wm_event_system.c | |
parent | 43af0f4d16edce82faa2ea8e01dd4eca68594346 (diff) |
Gizmo: add flag to disable tooltip
For some gizmos that follow the mouse cursor, this gets in the way.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_event_system.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index 0da82881ba3..54498b21369 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -2590,7 +2590,7 @@ static int wm_handlers_do_gizmo_handler(bContext *C, if (wm_gizmomap_highlight_set(gzmap, C, gz, part)) { if (gz != NULL) { - if (U.flag & USER_TOOLTIPS) { + if ((U.flag & USER_TOOLTIPS) && (gz->flag & WM_GIZMO_NO_TOOLTIP) == 0) { WM_tooltip_timer_init(C, CTX_wm_window(C), area, region, WM_gizmomap_tooltip_init); } } |