diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-01-27 21:36:17 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-01-27 21:36:39 +0300 |
commit | 438ca980e6b1ab0b0f22c2b35e319738ae494c26 (patch) | |
tree | 9711162fe5b5992133d915982b418c81c875be46 /io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py | |
parent | 00fe1f9d27ef81d535c4ebfea11e7793a41fe373 (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-x | io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py | 3 |
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 + |