glTF exporter: Fix T75132 Fix T74924 - fix draco UV export

This commit is contained in:
Julien Duroure 2020-06-23 19:27:34 +02:00
parent bc1262f4d6
commit e47d2bcfad
Notes: blender-bot 2023-02-14 18:59:57 +01:00
Referenced by issue #75132, Export gLTF 2.0 (draco compression not including multiple materials)
Referenced by issue #74924, gltf Compression corrupts exported models
2 changed files with 2 additions and 2 deletions

View File

@ -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, 21),
"version": (1, 3, 22),
'blender': (2, 90, 0),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',

View File

@ -309,7 +309,7 @@ def __compress_primitive(primitive, dll, export_settings):
if normals is not None:
extension['attributes']['NORMAL'] = normal_id
for (k, id) in enumerate(uvs):
for (k, id) in enumerate(uv_ids):
extension['attributes']['TEXCOORD_' + str(k)] = id
for (k, id) in enumerate(weight_ids):