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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user