Fix T41564: Emission viewer for volume shaders

Ctrl+Shift clicking volume shaders now connects them properly to the volume output
This commit is contained in:
Greg Zaal 2014-08-25 21:21:50 +02:00
parent a6f74e91b9
commit 03bdb32829
Notes: blender-bot 2023-02-14 20:04:15 +01:00
Referenced by issue #41564, Node efficiency tools connects volume nodes to surface socket
1 changed files with 3 additions and 3 deletions

View File

@ -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