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-07 10:59:14 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-05-07 10:59:14 +0300
commit447abeb9be69dcef24ea9c47bb2bde4488f9cb83 (patch)
tree1bb1318fb212e1371febde3e5410e1bc15efda86 /io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py
parentae8d56888683894676f924232b1f66c879c8a82c (diff)
glTF exporter: image texture: manage rough without metal, metal without rough
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py')
-rwxr-xr-xio_scene_gltf2/blender/exp/gltf2_blender_gather_image.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py
index 85985e41..8550610f 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py
@@ -168,7 +168,7 @@ def __get_image_data(sockets_or_slots, export_settings) -> gltf2_blender_image.E
composed_image[2] = image[source_channel]
elif socket.name == 'Roughness':
composed_image[1] = image[source_channel]
- elif socket.name == 'Occlusion' and len(sockets_or_slots) > 2:
+ elif socket.name == 'Occlusion' and len(sockets_or_slots) > 1 and sockets_or_slots[1] is not None:
composed_image[0] = image[source_channel]
else:
composed_image.update(image)