Fix T95252: Move duplicate node doesn't do edge-panning
Set "view2d_edge_pan" to true for the NODE_OT_translate_attach operator, which is used by the duplication operator. This is done in the keymap so that it's not hard-coded. Differential Revision: https://developer.blender.org/D13934
This commit is contained in:
parent
6ae08da5c8
commit
33d5ecd5b5
Notes:
blender-bot
2024-04-14 16:50:52 +02:00
Referenced by issue #95252, Move duplicate node doesn't do edge-panning Referenced by pull request #120324, Fix #119282: Enable edge pan when duplicating nodes from menu
|
@ -2029,8 +2029,10 @@ def km_node_editor(params):
|
|||
("node.link_make", {"type": 'F', "value": 'PRESS', "shift": True},
|
||||
{"properties": [("replace", True)]}),
|
||||
op_menu("NODE_MT_add", {"type": 'A', "value": 'PRESS', "shift": True}),
|
||||
("node.duplicate_move", {"type": 'D', "value": 'PRESS', "shift": True}, None),
|
||||
("node.duplicate_move_keep_inputs", {"type": 'D', "value": 'PRESS', "shift": True, "ctrl": True}, None),
|
||||
("node.duplicate_move", {"type": 'D', "value": 'PRESS', "shift": True},
|
||||
{"properties": [("NODE_OT_translate_attach", [("TRANSFORM_OT_translate", [("view2d_edge_pan", True)])])]}),
|
||||
("node.duplicate_move_keep_inputs", {"type": 'D', "value": 'PRESS', "shift": True, "ctrl": True},
|
||||
{"properties": [("NODE_OT_translate_attach", [("TRANSFORM_OT_translate", [("view2d_edge_pan", True)])])]}),
|
||||
("node.parent_set", {"type": 'P', "value": 'PRESS', "ctrl": True}, None),
|
||||
("node.detach", {"type": 'P', "value": 'PRESS', "alt": True}, None),
|
||||
("node.join", {"type": 'J', "value": 'PRESS', "ctrl": True}, None),
|
||||
|
|
|
@ -1126,7 +1126,8 @@ def km_node_editor(params):
|
|||
{"properties": [("replace", False)]}),
|
||||
("node.link_make", {"type": 'L', "value": 'PRESS', "shift": True},
|
||||
{"properties": [("replace", True)]}),
|
||||
("node.duplicate_move", {"type": 'D', "value": 'PRESS', "ctrl": True}, None),
|
||||
("node.duplicate_move", {"type": 'D', "value": 'PRESS', "ctrl": True},
|
||||
{"properties": [("NODE_OT_translate_attach", [("TRANSFORM_OT_translate", [("view2d_edge_pan", True)])])]}),
|
||||
("node.parent_set", {"type": 'P', "value": 'PRESS'}, None),
|
||||
("node.join", {"type": 'J', "value": 'PRESS', "ctrl": True}, None),
|
||||
("node.hide_toggle", {"type": 'H', "value": 'PRESS', "ctrl": True}, None),
|
||||
|
|
Loading…
Reference in New Issue