[Bf-extensions-cvs] [f9f6282] blender-v2.77-release: Node Wrangler tidy silly duplicate logic
Greg
noreply at git.blender.org
Tue Apr 5 10:54:45 CEST 2016
Commit: f9f6282824dbe0b482ee53785d346d42bbc82b69
Author: Greg
Date: Wed Mar 30 14:21:54 2016 +0200
Branches: blender-v2.77-release
https://developer.blender.org/rBAf9f6282824dbe0b482ee53785d346d42bbc82b69
Node Wrangler tidy silly duplicate logic
===================================================================
M node_wrangler.py
===================================================================
diff --git a/node_wrangler.py b/node_wrangler.py
index c102a1a..b0947af 100644
--- a/node_wrangler.py
+++ b/node_wrangler.py
@@ -1575,10 +1575,7 @@ class NWEmissionViewer(Operator, NWBase):
out_i = valid_outputs[0] # Start index of node's outputs
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 and out_link.to_socket == materialout.inputs[0]):
- linked_to_out = True
- if linked_to_out:
if i < len(valid_outputs) - 1:
out_i = valid_outputs[i + 1]
else:
More information about the Bf-extensions-cvs
mailing list