Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Zaal <gregzzmail@gmail.com>2014-08-25 23:21:50 +0400
committerGreg Zaal <gregzzmail@gmail.com>2014-08-25 23:21:50 +0400
commit03bdb32829fe973efe33d16da81f54d26cd1c2c6 (patch)
tree3d5dda20274cfe192d38751437a27c1f87cd917a
parenta6f74e91b970a228f628df6229b0b4b34efbe30e (diff)
Fix T41564: Emission viewer for volume shaders
Ctrl+Shift clicking volume shaders now connects them properly to the volume output
-rw-r--r--node_efficiency_tools.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/node_efficiency_tools.py b/node_efficiency_tools.py
index 35b17f19..173621ec 100644
--- a/node_efficiency_tools.py
+++ b/node_efficiency_tools.py
@@ -19,7 +19,7 @@
bl_info = {
"name": "Node Wrangler (aka Nodes Efficiency Tools)",
"author": "Bartek Skorupa, Greg Zaal",
- "version": (3, 12),
+ "version": (3, 13),
"blender": (2, 71, 0),
"location": "Node Editor Properties Panel or Ctrl-Space",
"description": "Various tools to enhance and speed up node-based workflow",
@@ -1442,8 +1442,8 @@ class NWEmissionViewer(Operator, NWBase):
make_links.append((active.outputs[out_i], emission.inputs[0]))
make_links.append((emission.outputs[0], materialout.inputs[0]))
else:
- make_links.append((active.outputs[out_i], materialout.inputs[0]))
- # output type is 'SHADER', no Viewer needed. Delete Viewer if exists.
+ # Output type is 'SHADER', no Viewer needed. Delete Viewer if exists.
+ make_links.append((active.outputs[out_i], materialout.inputs[1 if active.outputs[out_i].name == "Volume" else 0]))
for node in nodes:
if node.name == 'Emission Viewer':
node.select = True