UI: add check for any kind of popup

Fixes T56155 when merging into 2.8
This commit is contained in:
2018-07-31 10:37:46 +10:00
parent 885cc4cf9a
commit 1195a4a040
3 changed files with 10 additions and 1 deletions

View File

@@ -752,6 +752,7 @@ bool ui_but_is_toggle(const uiBut *but);
extern bool ui_block_is_menu(const uiBlock *block) ATTR_WARN_UNUSED_RESULT;
extern bool ui_block_is_pie_menu(const uiBlock *block) ATTR_WARN_UNUSED_RESULT;
extern bool ui_block_is_popup_any(const uiBlock *block) ATTR_WARN_UNUSED_RESULT;
/* interface_context_menu.c */
bool ui_popup_context_menu_for_button(struct bContext *C, uiBut *but);