diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-05-07 10:59:14 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-05-07 10:59:14 +0300 |
commit | 447abeb9be69dcef24ea9c47bb2bde4488f9cb83 (patch) | |
tree | 1bb1318fb212e1371febde3e5410e1bc15efda86 /io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py | |
parent | ae8d56888683894676f924232b1f66c879c8a82c (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-x | io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py | 2 |
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) |