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;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs