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:
parent
26ea8cd2d0
commit
d9abb0eaae
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue