diff options
Diffstat (limited to 'io_scene_gltf2/blender/imp/gltf2_blender_scene.py')
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_scene.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_scene.py b/io_scene_gltf2/blender/imp/gltf2_blender_scene.py index 2d986b0d..cf8f58a1 100755 --- a/io_scene_gltf2/blender/imp/gltf2_blender_scene.py +++ b/io_scene_gltf2/blender/imp/gltf2_blender_scene.py @@ -80,10 +80,14 @@ class BlenderScene(): BlenderSkin.create_armature_modifiers(gltf, skin_id) if gltf.data.animations: + gltf.animation_managed = [] for anim_idx, anim in enumerate(gltf.data.animations): + gltf.current_animation_names = {} if list_nodes is not None: for node_idx in list_nodes: BlenderAnimation.anim(gltf, anim_idx, node_idx) + for an in gltf.current_animation_names.values(): + gltf.animation_managed.append(an) # Parent root node to rotation object if list_nodes is not None: |