Fix T78575: Assert when using UILayout.prop_tabs_enum
Code required the tabs to be placed in an aligned region. Code should work fine even for unaligned regions though, so I don't see a reason to forbid this.
This commit is contained in:
parent
fe70605a2a
commit
057f3f2f3d
|
@ -371,7 +371,7 @@ static void ui_block_align_but_to_region(uiBut *but, const ARegion *region)
|
|||
rect->xmin = rect->xmax - but_width;
|
||||
break;
|
||||
default:
|
||||
BLI_assert(0);
|
||||
/* Tabs may be shown in unaligned regions too, they just appear as regular buttons then. */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue