UI: decorators weren't showing icon-only buttons

This commit is contained in:
2018-06-18 15:11:10 +02:00
parent de4c81c153
commit 55623368b4

View File

@@ -1584,7 +1584,7 @@ void uiItemFullR(uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int index
if (ui_decorate.use_prop_decorate) {
layout_row = uiLayoutRow(layout, true);
layout_row->space = 0;
ui_decorate.len = 1;
ui_decorate.len = len;
}
#endif /* UI_PROP_DECORATE */
@@ -1623,10 +1623,6 @@ void uiItemFullR(uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int index
but->drawflag |= UI_BUT_TEXT_RIGHT;
but->drawflag &= ~UI_BUT_TEXT_LEFT;
}
#ifdef UI_PROP_DECORATE
ui_decorate.len = len;
#endif
}
else {
if (name) {