Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Duroure <julien.duroure@gmail.com>2021-04-19 20:56:46 +0300
committerJulien Duroure <julien.duroure@gmail.com>2021-04-19 20:56:46 +0300
commit7521a4e27be9deb3fb0cf2eb2e61753dc66fec44 (patch)
tree229fcaf7528d9a04fc06af124c4d03b175242754 /io_scene_gltf2
parent3d7d5cead5435d97e9afb4c62aac9a996dd53b50 (diff)
glTF exporter: fix morph target import when named 'basis' (is a special name in Blender)
Diffstat (limited to 'io_scene_gltf2')
-rwxr-xr-xio_scene_gltf2/__init__.py2
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_gltf.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index a99ee1b5..92fb129c 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, 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',
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py b/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py
index 48f18079..92f8f469 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py
@@ -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: