[Bf-blender-cvs] [20ce4a77bd5] property-search-ui: Property Search: Properly filter labels for color buttons
Hans Goudey
noreply at git.blender.org
Mon Jul 20 22:24:37 CEST 2020
Commit: 20ce4a77bd52579cc3b0221884ba44c2de0c331e
Author: Hans Goudey
Date: Mon Jul 20 16:24:39 2020 -0400
Branches: property-search-ui
https://developer.blender.org/rB20ce4a77bd52579cc3b0221884ba44c2de0c331e
Property Search: Properly filter labels for color 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 f7b09396605..9e6b42d0858 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -664,7 +664,10 @@ static void ui_item_array(uiLayout *layout,
/* special case, boolean array in a menu, this could be used in a more generic way too */
if (ELEM(subtype, PROP_COLOR, PROP_COLOR_GAMMA) && !expand && ELEM(len, 3, 4)) {
- uiDefAutoButR(block, ptr, prop, -1, "", ICON_NONE, 0, 0, w, UI_UNIT_Y);
+ but = uiDefAutoButR(block, ptr, prop, -1, "", ICON_NONE, 0, 0, w, UI_UNIT_Y);
+ if (label_but != NULL) {
+ but->label_but = label_but;
+ }
}
else {
bool *boolarr = NULL;
More information about the Bf-blender-cvs
mailing list