[Bf-extensions-cvs] [daaec052] master: glTF exporter: fix after recent principled node changes
Julien Duroure
noreply at git.blender.org
Fri May 17 23:26:19 CEST 2019
Commit: daaec0521b8cddbaab4b51e0d28864aa27f4a62f
Author: Julien Duroure
Date: Fri May 17 23:25:22 2019 +0200
Branches: master
https://developer.blender.org/rBAdaaec0521b8cddbaab4b51e0d28864aa27f4a62f
glTF exporter: fix after recent principled node changes
Normal input index is now 19 instead of 17
===================================================================
M io_scene_gltf2/blender/imp/gltf2_blender_map_normal.py
===================================================================
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_map_normal.py b/io_scene_gltf2/blender/imp/gltf2_blender_map_normal.py
index 6631ad0b..ebaea448 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_map_normal.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_map_normal.py
@@ -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:
More information about the Bf-extensions-cvs
mailing list