uiList: fix another bug, where active item labels in sublayouts would not get colored...
authorBastien Montagne <montagne29@wanadoo.fr>
Sat, 9 Nov 2013 18:44:37 +0000 (18:44 +0000)
committerBastien Montagne <montagne29@wanadoo.fr>
Sat, 9 Nov 2013 18:44:37 +0000 (18:44 +0000)
source/blender/editors/interface/interface_layout.c

index 89c244009e5b124e2db33aedd8eb69fd03be8b91..e5bcc3d68634b64b13aaa231b5e17c95a476c5b1 100644 (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);
                }
        }