[Bf-extensions-cvs] [b9660e4] blender-v2.77-release: Node Wrangler: Fix T47892 output socket was ignored when connected to another input of the output node

Greg noreply at git.blender.org
Tue Apr 5 10:54:45 CEST 2016


Commit: b9660e452d5ba4cdd5759fa8f45c81c4f19cf203
Author: Greg
Date:   Wed Mar 30 14:13:14 2016 +0200
Branches: blender-v2.77-release
https://developer.blender.org/rBAb9660e452d5ba4cdd5759fa8f45c81c4f19cf203

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

===================================================================

M	node_wrangler.py

===================================================================

diff --git a/node_wrangler.py b/node_wrangler.py
index 59d9753..c102a1a 100644
--- a/node_wrangler.py
+++ b/node_wrangler.py
@@ -1576,7 +1576,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:



More information about the Bf-extensions-cvs mailing list