Node Wrangler: Fix T47892 output socket was ignored when connected to another input of the output node

This commit is contained in:
Greg Zaal 2016-03-30 14:13:14 +02:00
parent e42f47d181
commit 8c19f730b7
Notes: blender-bot 2023-02-14 19:49:48 +01:00
Referenced by issue #47892, Node wrangler viewing feature doesn't work if output is already connected.
1 changed files with 1 additions and 1 deletions

View File

@ -1568,7 +1568,7 @@ class NWEmissionViewer(Operator, NWBase):
for i, valid_i in enumerate(valid_outputs):
for out_link in active.outputs[valid_i].links:
linked_to_out = False
if "Emission Viewer" in out_link.to_node.name or out_link.to_node == materialout:
if "Emission Viewer" in out_link.to_node.name or (out_link.to_node == materialout and out_link.to_socket == materialout.inputs[0]):
linked_to_out = True
if linked_to_out:
if i < len(valid_outputs) - 1: