diff options
author | raa <roaoao@gmail.com> | 2017-04-11 13:25:46 +0300 |
---|---|---|
committer | raa <roaoao@gmail.com> | 2017-04-11 13:25:46 +0300 |
commit | 31bdb31ecf541960f7edcf564107ef8f75b0ee9b (patch) | |
tree | d508c03403291bf857954da66226334a959c3a1f | |
parent | d097c72f81a7a61ac5b96ca691114ac2765823d0 (diff) |
Fix: width of UILayout.prop_enum() buttons
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index 9b6547cf8a1..30a2094fee7 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -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); |