From ea84b0e4ace29fdf569dd505179376f32bd13d01 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Sun, 1 Mar 2015 01:35:34 +1300 Subject: Action Editor: "New Action" operator now stashes old actions, and is used by default again This commit modifies the "New Action" operator to always stash the old action before it creates a new one. As a result, the old active action will now have a proper user of sorts after the new one is created, preventing previously created actions from being lost. Now that the New operator does this, it can be used for the Action Editor header AND NLA Editor (Animation Data Panel -> Active Action) again. The "stash and create" operator is somewhat redundant at this point as a result. --- release/scripts/startup/bl_ui/space_dopesheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'release/scripts') diff --git a/release/scripts/startup/bl_ui/space_dopesheet.py b/release/scripts/startup/bl_ui/space_dopesheet.py index 67849a99abe..5358670c2f2 100644 --- a/release/scripts/startup/bl_ui/space_dopesheet.py +++ b/release/scripts/startup/bl_ui/space_dopesheet.py @@ -122,7 +122,7 @@ class DOPESHEET_HT_header(Header): dopesheet_filter(layout, context, genericFiltersOnly=True) if st.mode in {'ACTION', 'SHAPEKEY'}: - layout.template_ID(st, "action", new="action.stash_and_create") + layout.template_ID(st, "action", new="action.new") row = layout.row(align=True) row.operator("action.push_down", text="Push Down", icon='NLA_PUSHDOWN') -- cgit v1.2.3