Fix separator element for headers with multiple directions
This commit is contained in:
parent
d90fc119c2
commit
070830c62d
|
@ -2227,8 +2227,8 @@ void uiItemSpacer(uiLayout *layout)
|
|||
return;
|
||||
}
|
||||
|
||||
if (block->direction != UI_DIR_RIGHT) {
|
||||
printf("Error: separator_spacer() only supported in horizontal blocks\n.");
|
||||
if (block->direction & UI_DIR_RIGHT) {
|
||||
printf("Error: separator_spacer() only supported in horizontal blocks.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue