Skip to content

Commit

Permalink
Ensure Emission node works in localized versions
Browse files Browse the repository at this point in the history
  • Loading branch information
vanous committed Jul 23, 2024
1 parent 66f4b11 commit f80a38b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions material.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def getEmitterMaterial(name):
print("INFO", "Nodes in material tree nodes:")
for node in material.node_tree.nodes:
print("INFO", node)
material.node_tree.nodes.new(SHADER_NODE_EMISSION)
material.node_tree.links.new(material.node_tree.nodes[MATERIAL_OUTPUT].inputs[0], material.node_tree.nodes[EMISSION].outputs[0])
node = material.node_tree.nodes.new(SHADER_NODE_EMISSION)
material.node_tree.links.new(material.node_tree.nodes[MATERIAL_OUTPUT].inputs[0], node.outputs[0])
return material


Expand Down

0 comments on commit f80a38b

Please sign in to comment.