there was no way to reset timing for absolute shape keys, add an operator to do so.

This commit is contained in:
Campbell Barton
2012-04-05 06:10:15 +00:00
parent f4ccee2785
commit 2a54ef0442
5 changed files with 42 additions and 2 deletions

View File

@@ -233,7 +233,10 @@ class DATA_PT_shape_keys(MeshButtonsPanel, Panel):
sub.prop(ob, "use_shape_key_edit_mode", text="")
sub = row.row()
sub.operator("object.shape_key_clear", icon='X', text="")
if key.use_relative:
sub.operator("object.shape_key_clear", icon='X', text="")
else:
sub.operator("object.shape_key_retime", icon='RECOVER_LAST', text="")
row = layout.row()
row.prop(kb, "name")