[Bf-extensions-cvs] [a29e15e1] master: glTF exporter: small bugfix for occlusion textures
Julien Duroure
noreply at git.blender.org
Tue Jun 16 21:37:12 CEST 2020
Commit: a29e15e11ed2d02f3e5f16cd854976a09832e204
Author: Julien Duroure
Date: Tue Jun 16 21:36:45 2020 +0200
Branches: master
https://developer.blender.org/rBAa29e15e11ed2d02f3e5f16cd854976a09832e204
glTF exporter: small bugfix for occlusion textures
===================================================================
M io_scene_gltf2/__init__.py
M io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py
===================================================================
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index a7a4a84c..b12f3b6c 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, 3, 18),
+ "version": (1, 3, 19),
'blender': (2, 90, 0),
'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 69ebcb66..d1d4d2b9 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py
@@ -191,7 +191,7 @@ def __get_image_data(sockets_or_slots, export_settings) -> ExportImage:
dst_chan = Channel.B
elif socket.name == 'Roughness':
dst_chan = Channel.G
- elif socket.name == 'Occlusion' and len(sockets_or_slots) > 1 and sockets_or_slots[1] is not None:
+ elif socket.name == 'Occlusion':
dst_chan = Channel.R
elif socket.name == 'Alpha' and len(sockets_or_slots) > 1 and sockets_or_slots[1] is not None:
dst_chan = Channel.A
More information about the Bf-extensions-cvs
mailing list