glTF exporter: fix after recent principled node changes
Normal input index is now 19 instead of 17
This commit is contained in:
parent
ed3545322b
commit
daaec0521b
|
@ -89,9 +89,9 @@ class BlenderNormalMap():
|
|||
node_tree.links.new(text.inputs[0], mapping.outputs[0])
|
||||
node_tree.links.new(normalmap_node.inputs[1], text.outputs[0])
|
||||
|
||||
# following links will modify PBR node tree
|
||||
# following links will modify PBR node tree
|
||||
if principled:
|
||||
node_tree.links.new(principled.inputs[17], normalmap_node.outputs[0])
|
||||
node_tree.links.new(principled.inputs[19], normalmap_node.outputs[0])
|
||||
if diffuse:
|
||||
node_tree.links.new(diffuse.inputs[2], normalmap_node.outputs[0])
|
||||
if glossy:
|
||||
|
|
Loading…
Reference in New Issue