Fix #119282: Enable edge pan when duplicating nodes from menu #120324

Open
Leon Schittek wants to merge 2 commits from lone_noel/blender:fix-#119282-node-duplicate-edge-pan into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 4 additions and 2 deletions

View File

@ -352,8 +352,10 @@ class NODE_MT_node(Menu):
layout.operator_context = 'EXEC_DEFAULT'
layout.operator("node.clipboard_paste", text="Paste", icon='PASTEDOWN')
layout.operator_context = 'INVOKE_REGION_WIN'
layout.operator("node.duplicate_move", icon='DUPLICATE')
layout.operator("node.duplicate_move_linked")
props = layout.operator("node.duplicate_move", icon='DUPLICATE')
props.NODE_OT_translate_attach.TRANSFORM_OT_translate.view2d_edge_pan = True
props = layout.operator("node.duplicate_move_linked")
props.NODE_OT_translate_attach.TRANSFORM_OT_translate.view2d_edge_pan = True
layout.separator()
layout.operator("node.delete", icon='X')