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/blender/imp/gltf2_blender_gltf.py
parent3d7d5cead5435d97e9afb4c62aac9a996dd53b50 (diff)
glTF exporter: fix morph target import when named 'basis' (is a special name in Blender)
Diffstat (limited to 'io_scene_gltf2/blender/imp/gltf2_blender_gltf.py')
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_gltf.py2
1 files changed, 1 insertions, 1 deletions
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: