We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 793fef9 commit 1890272Copy full SHA for 1890272
NodeGraphQt/base/graph.py
@@ -1415,7 +1415,10 @@ def get_node_by_id(nid):
1415
out_port = out_node.outputs().get(pname) if out_node else None
1416
1417
if in_port and out_port:
1418
- self._undo_stack.push(PortConnectedCmd(in_port, out_port))
+ # only connect if input port is not connected yet or input port can have multiple connections.
1419
+ # important when duplicating nodes.
1420
+ if not in_port.model.connected_ports or in_port.model.multi_connection:
1421
+ self._undo_stack.push(PortConnectedCmd(in_port, out_port))
1422
1423
node_objs = list(nodes.values())
1424
if relative_pos:
0 commit comments