forked from bartvdbraak/blender
Fix T50386: Crash when spawning pie menus
D2455 by @raa, thanks!
This commit is contained in:
parent
605695de61
commit
8a6c689f30
@ -581,6 +581,9 @@ static void ui_item_enum_expand(
|
||||
UI_block_layout_set_current(block, layout_radial);
|
||||
}
|
||||
else {
|
||||
if (layout->item.type == ITEM_LAYOUT_RADIAL) {
|
||||
layout_radial = layout;
|
||||
}
|
||||
UI_block_layout_set_current(block, layout);
|
||||
}
|
||||
}
|
||||
@ -593,8 +596,9 @@ static void ui_item_enum_expand(
|
||||
|
||||
for (item = item_array; item->identifier; item++) {
|
||||
if (!item->identifier[0]) {
|
||||
if (radial)
|
||||
if (radial && layout_radial) {
|
||||
uiItemS(layout_radial);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user