glTF exporter: small bugfix for occlusion textures
This commit is contained in:
parent
5b4ed4e574
commit
a29e15e11e
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue