diff options
Diffstat (limited to 'source/blender/editors/interface/interface_query.c')
-rw-r--r-- | source/blender/editors/interface/interface_query.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_query.c b/source/blender/editors/interface/interface_query.c index d0f7e1341de..ba4fdf43875 100644 --- a/source/blender/editors/interface/interface_query.c +++ b/source/blender/editors/interface/interface_query.c @@ -96,6 +96,14 @@ bool UI_but_is_tool(const uiBut *but) return false; } +bool UI_but_is_tooltip_no_overlap(const uiBut *but) +{ + if (!ui_block_is_popover(but->block)) { + return UI_but_is_tool(but); + } + return false; +} + /** \} */ /* -------------------------------------------------------------------- */ |