[Bf-extensions-cvs] [8c19f73] master: Node Wrangler: Fix T47892 output socket was ignored when connected to another input of the output node

Greg noreply at git.blender.org
Wed Mar 30 14:14:19 CEST 2016


Commit: 8c19f730b75a223790667f2d3181a21a7530e791
Author: Greg
Date:   Wed Mar 30 14:13:14 2016 +0200
Branches: master
https://developer.blender.org/rBA8c19f730b75a223790667f2d3181a21a7530e791

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 764db75..7e2affa 100644
--- a/node_wrangler.py
+++ b/node_wrangler.py
@@ -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:



More information about the Bf-extensions-cvs mailing list