Fix T65439: quick explode error

Material setup for quick explode was assuming a shader with a "BSDF"
output socket connected to the material output node whereas other socket
names are valid ("Shader", "Emission", "BSSRDF", "Holdout"...)
This commit is contained in:
Philipp Oeser 2019-06-03 09:49:58 +02:00
parent 2c18e400e8
commit 4fbc71a320

View File

@ -245,7 +245,7 @@ class QuickExplode(ObjectModeOperator, Operator):
node_mix = nodes.new('ShaderNodeMixShader')
node_mix.location = (node_x - offset_x, node_y)
mat.node_tree.links.new(node_surface.outputs["BSDF"], node_mix.inputs[1])
mat.node_tree.links.new(node_surface.outputs[0], node_mix.inputs[1])
mat.node_tree.links.new(node_mix.outputs["Shader"], node_out_mat.inputs['Surface'])
offset_x += 200