diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2020-01-29 23:29:25 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2020-01-29 23:29:25 +0300 |
commit | a9e4f549520d325dd90916612d654c39375f3e92 (patch) | |
tree | 13dff4a91512a0e9ededfd203024215d2446b4d1 /io_scene_gltf2 | |
parent | b85840836438856c0a296bb8281aa459e076d129 (diff) |
glTF exporter: texture, fix some alpha issue
Diffstat (limited to 'io_scene_gltf2')
-rwxr-xr-x | io_scene_gltf2/__init__.py | 2 | ||||
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py index 5644853e..13b50cda 100755 --- a/io_scene_gltf2/__init__.py +++ b/io_scene_gltf2/__init__.py @@ -15,7 +15,7 @@ bl_info = { 'name': 'glTF 2.0 format', 'author': 'Julien Duroure, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors', - "version": (1, 1, 42), + "version": (1, 1, 43), 'blender': (2, 81, 6), 'location': 'File > Import-Export', 'description': 'Import-Export as glTF 2.0', 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 81da3780..dbac5c23 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py @@ -167,6 +167,8 @@ def __get_image_data(sockets_or_slots, export_settings) -> ExportImage: 'G': Channel.G, 'B': Channel.B, }[elem.from_socket.name] + if elem.from_socket.name == 'Alpha': + src_chan = Channel.A dst_chan = None |