Fix: width of UILayout.prop_enum() buttons
This commit is contained in:
parent
d097c72f81
commit
31bdb31ecf
Notes:
blender-bot
2023-02-14 07:04:55 +01:00
Referenced by issue #51187, Memory leak when exporting OpenEXR monochrome animation
|
@ -1274,7 +1274,8 @@ static void ui_item_rna_size(
|
|||
if (!w) {
|
||||
if (type == PROP_ENUM && icon_only) {
|
||||
w = ui_text_icon_width(layout, "", ICON_BLANK1, 0);
|
||||
w += 0.6f * UI_UNIT_X;
|
||||
if (index != RNA_ENUM_VALUE)
|
||||
w += 0.6f * UI_UNIT_X;
|
||||
}
|
||||
else {
|
||||
w = ui_text_icon_width(layout, name, icon, 0);
|
||||
|
|
Loading…
Reference in New Issue