Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Duroure <julien.duroure@gmail.com>2019-05-18 00:25:22 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-05-18 00:25:22 +0300
commitdaaec0521b8cddbaab4b51e0d28864aa27f4a62f (patch)
treecc838cbe02be5a7e7742f40387253d1804a0d2ae
parented3545322bb94004cca9f56b8f8a6e1ab8ce54d6 (diff)
glTF exporter: fix after recent principled node changes
Normal input index is now 19 instead of 17
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_map_normal.py4
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: