From 5f0731dc8db7956c659851359428e38c5922537a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 5 Jun 2013 06:34:18 +0000 Subject: 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. --- release/scripts/startup/bl_ui/properties_data_mesh.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'release') 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: -- cgit v1.2.3