glTF exporter: fix after recent principled node changes

Normal input index is now 19 instead of 17
This commit is contained in:
Julien Duroure 2019-05-17 23:25:22 +02:00
parent ed3545322b
commit daaec0521b
1 changed files with 2 additions and 2 deletions

View File

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