svn merge -r39558:39800 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender.git] / release / scripts / startup / bl_ui / properties_data_mesh.py
index 75df7dad5f2fc3be25a4c6df3cccc0e15cbdb936..7503959480b50c608ffcfe0be7ca5d2e68e1562a 100644 (file)
@@ -135,7 +135,8 @@ class DATA_PT_vertex_groups(MeshButtonsPanel, Panel):
 
         ob = context.object
         group = ob.vertex_groups.active
-
+        
+        
         rows = 2
         if group:
             rows = 5
@@ -144,6 +145,9 @@ class DATA_PT_vertex_groups(MeshButtonsPanel, Panel):
         row.template_list(ob, "vertex_groups", ob.vertex_groups, "active_index", rows=rows)
 
         col = row.column(align=True)
+        # Jason was here, this was replaced by hardcoded list view checkboxes. #
+        #col.prop(group, "flag")
+        
         col.operator("object.vertex_group_add", icon='ZOOMIN', text="")
         col.operator("object.vertex_group_remove", icon='ZOOMOUT', text="")
         col.menu("MESH_MT_vertex_group_specials", icon='DOWNARROW_HLT', text="")
@@ -154,6 +158,14 @@ class DATA_PT_vertex_groups(MeshButtonsPanel, Panel):
         if group:
             row = layout.row()
             row.prop(group, "name")
+        #Jason was here
+        # add buttons to make it faster to lock/unlock vgroups
+        if ob.mode == 'WEIGHT_PAINT' and len(ob.vertex_groups) > 0:
+            row = layout.row()
+            sub = row.row(align=True)
+            sub.operator("object.vertex_group_lock_all", text="Lock All")
+            sub.operator("object.vertex_group_invert_locks", text="Invert Locks")
+            sub.operator("object.vertex_group_unlock_all", text="Unlock All")
 
         if ob.mode == 'EDIT' and len(ob.vertex_groups) > 0:
             row = layout.row()