From a3a3141f53e5341cc4c669297ed1d894ad1d89e1 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Tue, 29 Apr 2014 01:59:15 +1200 Subject: NLA Editor: Make Single User for NLA Strips This operator is used to make sure that if/when you have multiple strips using the same action, if you select these and run this operator, each strip will be given its own copy of the action. This is useful if you decide later that you want to start using an existing action as a base. NOTE: This does not recursively go inside meta's, so care is still advised in that case. --- source/blender/editors/space_nla/nla_ops.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/editors/space_nla/nla_ops.c') diff --git a/source/blender/editors/space_nla/nla_ops.c b/source/blender/editors/space_nla/nla_ops.c index 9dc598bc382..47496684380 100644 --- a/source/blender/editors/space_nla/nla_ops.c +++ b/source/blender/editors/space_nla/nla_ops.c @@ -158,6 +158,8 @@ void nla_operatortypes(void) WM_operatortype_append(NLA_OT_action_sync_length); + WM_operatortype_append(NLA_OT_make_single_user); + WM_operatortype_append(NLA_OT_apply_scale); WM_operatortype_append(NLA_OT_clear_scale); @@ -261,6 +263,9 @@ static void nla_keymap_main(wmKeyConfig *keyconf, wmKeyMap *keymap) kmi = WM_keymap_add_item(keymap, "NLA_OT_duplicate", DKEY, KM_PRESS, KM_ALT, 0); RNA_boolean_set(kmi->ptr, "linked", true); + + /* single user */ + WM_keymap_add_item(keymap, "NLA_OT_make_single_user", UKEY, KM_PRESS, 0, 0); /* delete */ WM_keymap_add_item(keymap, "NLA_OT_delete", XKEY, KM_PRESS, 0, 0); -- cgit v1.2.3