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:
Julian Eisel 2020-08-03 11:55:51 +02:00
parent fe70605a2a
commit 057f3f2f3d
1 changed files with 1 additions and 1 deletions

View File

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