Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-02-13 08:18:11 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-02-13 09:02:52 +0300
commit57d0e4969d45a503102ee91329c695fe86977c02 (patch)
treedf350e4355b8de67646eebf3c20c62d9f969921f /source/blender/editors/include/UI_interface.h
parent60066b0b80f68e8cfc696998bd2cdffaffbe4f4b (diff)
Fix crash using 'activate_init' in popup menus
Reported in T71112
Diffstat (limited to 'source/blender/editors/include/UI_interface.h')
-rw-r--r--source/blender/editors/include/UI_interface.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h
index 3089d980f06..5bed153e995 100644
--- a/source/blender/editors/include/UI_interface.h
+++ b/source/blender/editors/include/UI_interface.h
@@ -723,6 +723,11 @@ void UI_but_drawflag_disable(uiBut *but, int flag);
void UI_but_type_set_menu_from_pulldown(uiBut *but);
/* special button case, only draw it when used actively, for outliner etc */
+bool UI_but_active_only_ex(const struct bContext *C,
+ struct ARegion *ar,
+ uiBlock *block,
+ uiBut *but,
+ bool remove_on_failure);
bool UI_but_active_only(const struct bContext *C, struct ARegion *ar, uiBlock *block, uiBut *but);
bool UI_block_active_only_flagged_buttons(const struct bContext *C,
struct ARegion *ar,