diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-11-15 21:44:42 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-11-15 21:48:23 +0300 |
commit | d9abb0eaae2d133c7a1bd29ce352a39de808b918 (patch) | |
tree | de6a7b2cb077342911f4f7529cb40346e108b2d0 /source/blender/editors/interface | |
parent | 26ea8cd2d002bd8f306d7f192859295393865252 (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/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 6 |
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; } |