Animation: Default NLA duplucation hot keys to duplicate linked
## Overview Much like node groups, or a VSE clip, when we duplicate we actually want a _linked_ duplicate. This PR updates the NLA key board for Duplicate linked to `Shift + D`, and Duplicate to `Alt + D`. Additionally, update Tool tips to reflect duplicate vs linked duplicate. Pull Request: https://projects.blender.org/blender/blender/pulls/110316
This commit is contained in:
@@ -2654,8 +2654,8 @@ def km_nla_editor(params):
|
||||
("nla.soundclip_add", {"type": 'K', "value": 'PRESS', "shift": True}, None),
|
||||
("nla.meta_add", {"type": 'G', "value": 'PRESS', "ctrl": True}, None),
|
||||
("nla.meta_remove", {"type": 'G', "value": 'PRESS', "ctrl": True, "alt": True}, None),
|
||||
("nla.duplicate_move", {"type": 'D', "value": 'PRESS', "shift": True}, None),
|
||||
("nla.duplicate_linked_move", {"type": 'D', "value": 'PRESS', "alt": True}, None),
|
||||
("nla.duplicate_linked_move", {"type": 'D', "value": 'PRESS', "shift": True}, None),
|
||||
("nla.duplicate_move", {"type": 'D', "value": 'PRESS', "alt": True}, None),
|
||||
("nla.make_single_user", {"type": 'U', "value": 'PRESS'}, None),
|
||||
("nla.delete", {"type": 'X', "value": 'PRESS'}, None),
|
||||
("nla.delete", {"type": 'DEL', "value": 'PRESS'}, None),
|
||||
|
||||
@@ -181,8 +181,8 @@ class NLA_MT_edit(Menu):
|
||||
|
||||
layout.separator()
|
||||
layout.operator("nla.bake", text="Bake Action")
|
||||
layout.operator("nla.duplicate", text="Duplicate").linked = False
|
||||
layout.operator("nla.duplicate", text="Linked Duplicate").linked = True
|
||||
layout.operator("nla.duplicate_move")
|
||||
layout.operator("nla.duplicate_linked_move")
|
||||
layout.operator("nla.split")
|
||||
layout.operator("nla.delete")
|
||||
layout.operator("nla.tracks_delete")
|
||||
@@ -302,8 +302,8 @@ class NLA_MT_context_menu(Menu):
|
||||
props = layout.operator("wm.call_panel", text="Rename...")
|
||||
props.name = "TOPBAR_PT_name"
|
||||
props.keep_open = False
|
||||
layout.operator("nla.duplicate", text="Duplicate").linked = False
|
||||
layout.operator("nla.duplicate", text="Linked Duplicate").linked = True
|
||||
layout.operator("nla.duplicate_move")
|
||||
layout.operator("nla.duplicate_linked_move")
|
||||
|
||||
layout.separator()
|
||||
|
||||
|
||||
@@ -1220,8 +1220,7 @@ void NLA_OT_duplicate(wmOperatorType *ot)
|
||||
/* identifiers */
|
||||
ot->name = "Duplicate Strips";
|
||||
ot->idname = "NLA_OT_duplicate";
|
||||
ot->description =
|
||||
"Duplicate selected NLA-Strips, adding the new strips in new tracks above the originals";
|
||||
ot->description = "Duplicate selected NLA-Strips, adding the new strips to new track(s)";
|
||||
|
||||
/* api callbacks */
|
||||
ot->invoke = nlaedit_duplicate_invoke;
|
||||
|
||||
@@ -148,7 +148,7 @@ void ED_operatormacros_nla()
|
||||
|
||||
ot = WM_operatortype_append_macro("NLA_OT_duplicate_move",
|
||||
"Duplicate",
|
||||
"Duplicate selected strips and their Actions and move them",
|
||||
"Duplicate selected NLA-Strips, adding the new strips to new track(s)",
|
||||
OPTYPE_UNDO | OPTYPE_REGISTER);
|
||||
otmacro = WM_operatortype_macro_define(ot, "NLA_OT_duplicate");
|
||||
RNA_boolean_set(otmacro->ptr, "linked", false);
|
||||
@@ -156,8 +156,9 @@ void ED_operatormacros_nla()
|
||||
|
||||
ot = WM_operatortype_append_macro("NLA_OT_duplicate_linked_move",
|
||||
"Duplicate Linked",
|
||||
"Duplicate selected strips and move them",
|
||||
"Duplicate Linked selected NLA-Strips, adding the new strips to new track(s)",
|
||||
OPTYPE_UNDO | OPTYPE_REGISTER);
|
||||
|
||||
otmacro = WM_operatortype_macro_define(ot, "NLA_OT_duplicate");
|
||||
RNA_boolean_set(otmacro->ptr, "linked", true);
|
||||
WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
|
||||
|
||||
Reference in New Issue
Block a user