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:
Nate Rupsis
2023-07-27 18:14:05 +02:00
committed by Nate Rupsis
parent 8214109778
commit 8183f21258
4 changed files with 10 additions and 10 deletions
@@ -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),
+4 -4
View File
@@ -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()