From a352670791c4cf5be17ec90becaa3f1e051f451b Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sat, 9 Nov 2013 18:44:37 +0000 Subject: uiList: fix another bug, where active item labels in sublayouts would not get colored as active (need recursion in sublayouts!). Was affecting e.g. Group node inputs/outputs lists. --- source/blender/editors/interface/interface_layout.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index 89c244009e5..e5bcc3d6863 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -2423,7 +2423,10 @@ void ui_layout_list_set_labels_active(uiLayout *layout) { uiButtonItem *bitem; for (bitem = layout->items.first; bitem; bitem = bitem->item.next) { - if (bitem->item.type == ITEM_BUTTON && bitem->but->type == LISTLABEL) { + if (bitem->item.type != ITEM_BUTTON) { + ui_layout_list_set_labels_active((uiLayout *)(&bitem->item)); + } + else if (bitem->but->type == LISTLABEL) { uiButSetFlag(bitem->but, UI_SELECT); } } -- cgit v1.2.3