Re-added the interface template for vertex groups' checkboxes (they were cut out...
authorJason Hays <jason_hays22@mymail.eku.edu>
Tue, 13 Sep 2011 20:28:43 +0000 (20:28 +0000)
committerJason Hays <jason_hays22@mymail.eku.edu>
Tue, 13 Sep 2011 20:28:43 +0000 (20:28 +0000)
source/blender/editors/interface/interface_templates.c

index 8c15171..2f6a84b 100644 (file)
@@ -2124,6 +2124,12 @@ static void list_item_row(bContext *C, uiLayout *layout, PointerRNA *ptr, Pointe
                //uiItemR(row, itemptr, "mute", 0, "", ICON_MUTE_IPO_OFF);
                uiBlockSetEmboss(block, UI_EMBOSS);
        }
+       /* Jason was here: I need the RNA struct for vertex groups */
+       else if(RNA_struct_is_a(itemptr->type, &RNA_VertexGroup)) {
+               uiItemL(sub, name, icon);
+               uiBlockSetEmboss(block, UI_EMBOSS);
+               uiDefButR(block, OPTION, 0, "", 0, 0, UI_UNIT_X, UI_UNIT_Y, itemptr, "flag", 0, 0, 0, 0, 0,  NULL);
+       }
        else if(itemptr->type == &RNA_KeyingSetPath) {
                KS_Path *ksp = (KS_Path*)itemptr->data;