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>2019-01-27 21:36:17 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-01-27 21:36:39 +0300
commit438ca980e6b1ab0b0f22c2b35e319738ae494c26 (patch)
tree9711162fe5b5992133d915982b418c81c875be46 /io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py
parent00fe1f9d27ef81d535c4ebfea11e7793a41fe373 (diff)
glTF importer: fix import multiple animations with same name
Diffstat (limited to 'io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py')
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_animation_node.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py b/io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py
index 0d36fb50..12c54e6a 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py
@@ -147,3 +147,6 @@ class BlenderNodeAnim():
group='ShapeKeys'
)
+ if action.name not in gltf.current_animation_names.keys():
+ gltf.current_animation_names[name] = action.name
+