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.
This commit is contained in:
Dalai Felinto 2018-11-15 16:44:42 -02:00
parent 26ea8cd2d0
commit d9abb0eaae
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}