Skip to content

Commit

Permalink
Fix T41564: Emission viewer for volume shaders
Browse files Browse the repository at this point in the history
Ctrl+Shift clicking volume shaders now connects them properly to the volume output
  • Loading branch information
gregzaal committed Aug 25, 2014
1 parent a6f74e9 commit 03bdb32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions node_efficiency_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -1442,8 +1442,8 @@ def invoke(self, context, event):
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
Expand Down

0 comments on commit 03bdb32

Please sign in to comment.