diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-09-05 00:39:56 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-09-05 00:39:56 +0300 |
commit | 9a7d0db875af1ece1f7ed6e10664fddb94f5fb9e (patch) | |
tree | 1db075f3059a169fe1b563fbc3532f0a0afcc3a7 /io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py | |
parent | 42f1e69458db9efcf61a79ea8ec0ba2bba2b74d9 (diff) |
glTF importer: set track name from gltf animation 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, 2 insertions, 1 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 498cbc89..cf570a20 100755 --- a/io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py +++ b/io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py @@ -53,7 +53,8 @@ class BlenderNodeAnim(): start_frame = bpy.context.scene.frame_start - simulate_stash(obj, bpy.data.actions[action_name], start_frame) + animation_name = gltf.data.animations[anim_idx].name + simulate_stash(obj, animation_name, bpy.data.actions[action_name], start_frame) gltf.actions_stashed[(obj.name, action_name)] = True |