Fix T65727: Broken button tool-tips in 3D view

Own error in 6868202899.
This commit is contained in:
Campbell Barton 2019-06-12 12:57:20 +10:00
parent fcb534e336
commit aa0cd21da0
Notes: blender-bot 2023-02-14 11:20:29 +01:00
Referenced by issue #65727, Tooltips in 3d view broken (except view gizmos)
1 changed files with 5 additions and 2 deletions

View File

@ -2794,8 +2794,11 @@ static int wm_handlers_do_intern(bContext *C, wmEvent *event, ListBase *handlers
int part = -1;
gz = wm_gizmomap_highlight_find(gzmap, C, event, &part);
if ((gz == NULL) || (prev.gz != gz) || (prev.part != part)) {
WM_tooltip_clear(C, CTX_wm_window(C));
/* If no gizmos are/were active, don't clear tool-tips. */
if (gz || prev.gz) {
if ((prev.gz != gz) || (prev.part != part)) {
WM_tooltip_clear(C, CTX_wm_window(C));
}
}
if (wm_gizmomap_highlight_set(gzmap, C, gz, part)) {