diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2013-11-09 22:44:37 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2013-11-09 22:44:37 +0400 |
commit | a352670791c4cf5be17ec90becaa3f1e051f451b (patch) | |
tree | 5985ae4a816c70f22f0565eeae4894de4ba924aa /source | |
parent | efa23a47edebb7a459ca2e62ba922a01bff76dbb (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); } } |