diff options
author | Julian Eisel <julian@blender.org> | 2020-08-03 12:55:51 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-08-03 12:57:20 +0300 |
commit | 057f3f2f3d26bbabf004f59b6350f289e5e7dd5a (patch) | |
tree | f4d5213ed46d7d3560db8dcb35a23d3340f9dbdd /source | |
parent | fe70605a2a0bb0b4f7275f40c410c5d1d880ae98 (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/interface/interface_align.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_align.c b/source/blender/editors/interface/interface_align.c index 8edae5d8740..4981ef111e0 100644 --- a/source/blender/editors/interface/interface_align.c +++ b/source/blender/editors/interface/interface_align.c @@ -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; } } |