diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-05-18 00:25:22 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-05-18 00:25:22 +0300 |
commit | daaec0521b8cddbaab4b51e0d28864aa27f4a62f (patch) | |
tree | cc838cbe02be5a7e7742f40387253d1804a0d2ae /io_scene_gltf2/blender | |
parent | ed3545322bb94004cca9f56b8f8a6e1ab8ce54d6 (diff) |
glTF exporter: fix after recent principled node changes
Normal input index is now 19 instead of 17
Diffstat (limited to 'io_scene_gltf2/blender')
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_map_normal.py | 4 |
1 files changed, 2 insertions, 2 deletions
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: |