[Bf-blender-cvs] [55623368b4a] blender2.8: UI: decorators weren't showing icon-only buttons

Campbell Barton noreply at git.blender.org
Mon Jun 18 15:12:20 CEST 2018


Commit: 55623368b4ae995b4961b88eb3a3bb73ddc1447d
Author: Campbell Barton
Date:   Mon Jun 18 15:11:10 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB55623368b4ae995b4961b88eb3a3bb73ddc1447d

UI: decorators weren't showing icon-only buttons

===================================================================

M	source/blender/editors/interface/interface_layout.c

===================================================================

diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c
index ff9b08a65c9..978bea98293 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -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) {



More information about the Bf-blender-cvs mailing list