diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-07-06 12:28:00 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-07-06 15:19:11 +0300 |
commit | 02f903d0996a785b5e167b26907ff53e967037d7 (patch) | |
tree | 5c8e32c2fb461b52090c962ca0de88d12d0bac8a /source | |
parent | 2aba2de92bf0f55a3a390884566615d6d0562db4 (diff) |
Fix layout issue with enum property separators.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index 358131fcb87..16016a799ef 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -680,12 +680,15 @@ static void ui_item_enum_expand( } for (item = item_array; item->identifier; item++) { - if (!item->identifier[0] && (item+1)->identifier) { - if (radial && layout_radial) { - uiItemS(layout_radial); - } - else { - uiItemS(block->curlayout); + if (!item->identifier[0]) { + const EnumPropertyItem *next_item = item + 1; + if (next_item->identifier) { + if (radial && layout_radial) { + uiItemS(layout_radial); + } + else { + uiItemS(block->curlayout); + } } continue; } |