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.

This commit is contained in:
2013-11-09 18:44:37 +00:00
parent efa23a47ed
commit a352670791

View File

@@ -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);
}
}