diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-05 10:34:18 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-05 10:34:18 +0400 |
commit | 5f0731dc8db7956c659851359428e38c5922537a (patch) | |
tree | cdfacbb8930d60520614615fe6071ad3bb604826 /release/scripts/startup/bl_ui/properties_data_mesh.py | |
parent | 666c8b51ca667f2c91600a98745a4f115a82216d (diff) |
add option to remove all shape keys at once (access from shape key menu on panel).
Without this there was no easy way to get a WYSIWYG copy of a mesh that had shape keys,
since removing them would adjust the mesh.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_mesh.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_mesh.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py index f85e7697df6..04aa59c3b11 100644 --- a/release/scripts/startup/bl_ui/properties_data_mesh.py +++ b/release/scripts/startup/bl_ui/properties_data_mesh.py @@ -54,6 +54,7 @@ class MESH_MT_shape_key_specials(Menu): layout.operator("object.join_shapes", icon='COPY_ID') # icon is not ideal layout.operator("object.shape_key_mirror", icon='ARROW_LEFTRIGHT') layout.operator("object.shape_key_add", icon='ZOOMIN', text="New Shape From Mix").from_mix = True + layout.operator("object.shape_key_remove", icon='X', text="Delete All Shapes").all = True class MESH_UL_vgroups(UIList): @@ -257,7 +258,7 @@ class DATA_PT_shape_keys(MeshButtonsPanel, Panel): sub = col.column(align=True) sub.operator("object.shape_key_add", icon='ZOOMIN', text="").from_mix = False - sub.operator("object.shape_key_remove", icon='ZOOMOUT', text="") + sub.operator("object.shape_key_remove", icon='ZOOMOUT', text="").all = False sub.menu("MESH_MT_shape_key_specials", icon='DOWNARROW_HLT', text="") if kb: |