glTF exporter: fix morph target import when named 'basis' (is a special name in Blender)
This commit is contained in:
parent
3d7d5cead5
commit
7521a4e27b
|
@ -15,7 +15,7 @@
|
|||
bl_info = {
|
||||
'name': 'glTF 2.0 format',
|
||||
'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
|
||||
"version": (1, 6, 11),
|
||||
"version": (1, 6, 12),
|
||||
'blender': (2, 91, 0),
|
||||
'location': 'File > Import-Export',
|
||||
'description': 'Import-Export as glTF 2.0',
|
||||
|
|
|
@ -165,7 +165,7 @@ class BlenderGlTF():
|
|||
# Calculate names for each mesh's shapekeys
|
||||
for mesh in gltf.data.meshes or []:
|
||||
mesh.shapekey_names = []
|
||||
used_names = set()
|
||||
used_names = set(['Basis']) #Be sure to not use 'Basis' name at import, this is a reserved name
|
||||
|
||||
# Some invalid glTF files has empty primitive tab
|
||||
if len(mesh.primitives) > 0:
|
||||
|
|
Loading…
Reference in New Issue