Merged 38822-39182
[blender.git] / source / blender / editors / interface / interface_templates.c
index 305a4a8..6288898 100644 (file)
@@ -2126,6 +2126,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
                uiItemL(sub, name, icon); /* fails, backdrop LISTROW... */