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
path: root/source
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-11-15 21:44:42 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-11-15 21:48:23 +0300
commitd9abb0eaae2d133c7a1bd29ce352a39de808b918 (patch)
treede6a7b2cb077342911f4f7529cb40346e108b2d0 /source
parent26ea8cd2d002bd8f306d7f192859295393865252 (diff)
Explicitly disable separator spacer in popover and pie menus
It is doable to get it to work, you just need to process it line by line though, and get the right width of each one. Disabling it for now since it is not implemented anyways.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/interface/interface_layout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c
index 76296b12898..424f5004bf0 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -2442,10 +2442,10 @@ void uiItemS(uiLayout *layout)
void uiItemSpacer(uiLayout *layout)
{
uiBlock *block = layout->root->block;
- bool is_menu = ui_block_is_menu(block);
+ const bool is_popup = ui_block_is_popup_any(block);
- if (is_menu) {
- printf("Error: separator_spacer() not supported in menus.\n");
+ if (is_popup) {
+ printf("Error: separator_spacer() not supported in popups.\n");
return;
}