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>2020-11-30 20:45:29 +0300
committerJulien Duroure <julien.duroure@gmail.com>2020-11-30 20:45:29 +0300
commit5f2cb885abb90e5c0c44c3ff699502d2bc14fca9 (patch)
treedcad84b0fb6594a49571db31b9be0ea2c4a6944e /io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py
parentce3a7fc885a0a26c570e8f4a9f9de8a0806cab01 (diff)
glTF exporter: fix export when texture is used only for alpha
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 7c1fa861..bb7621ed 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py
@@ -182,7 +182,7 @@ def __get_image_data(sockets, export_settings) -> ExportImage:
dst_chan = Channel.G
elif socket.name == 'Occlusion':
dst_chan = Channel.R
- elif socket.name == 'Alpha' and len(sockets) > 1 and sockets[1] is not None:
+ elif socket.name == 'Alpha':
dst_chan = Channel.A
elif socket.name == 'Clearcoat':
dst_chan = Channel.R