Fix: Node Wrangler: "Add Reroutes" operator creates new sockets for certain nodes

The "Add Reroutes" operator does not ignore virtual sockets when creating reroutes.

This has the unintended side effect of creating new sockets when attempting to link with said sockets.
This patch adds a check that explicitly skips over them.

Pull Request: https://projects.blender.org/blender/blender/pulls/147306
This commit is contained in:
quackarooni
2025-10-03 20:30:29 +02:00
committed by Nika Kutsniashvili
parent f47a84e710
commit f7c37b05e4

View File

@@ -1688,7 +1688,7 @@ class NWAddReroutes(Operator, NWBase):
reroutes_count = 0 # Will be used when aligning reroutes added to hidden nodes.
for out_i, output in enumerate(node.outputs):
if output.is_unavailable:
if output.is_unavailable or isinstance(output, bpy.types.NodeSocketVirtual):
continue
if node.type == 'R_LAYERS' and output.name != 'Alpha':
# If 'R_LAYERS' check if output is used in render pass.