diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2020-02-23 21:22:42 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2020-02-23 21:22:42 +0300 |
commit | 9920e00e5fbeee555ce0bef48b86ce4994a443f1 (patch) | |
tree | bffeb581d126324facb0af850e304de9a721473b /io_scene_gltf2/blender | |
parent | b966913caab34eef52f148f9ccf6770cf527d87b (diff) |
glTF: fix re-exporting mutltiple animations (regression)
Diffstat (limited to 'io_scene_gltf2/blender')
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_animation_bone.py | 1 | ||||
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_animation_bone.py b/io_scene_gltf2/blender/imp/gltf2_blender_animation_bone.py index 4d834611..62c179c1 100755 --- a/io_scene_gltf2/blender/imp/gltf2_blender_animation_bone.py +++ b/io_scene_gltf2/blender/imp/gltf2_blender_animation_bone.py @@ -178,6 +178,7 @@ class BlenderBoneAnim(): if not action: name = animation.track_name + "_" + obj.name action = bpy.data.actions.new(name) + action.id_root = 'OBJECT' gltf.needs_stash.append((obj, animation.track_name, action)) gltf.action_cache[obj.name] = action 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 47f76c99..a0205483 100755 --- a/io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py +++ b/io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py @@ -49,6 +49,7 @@ class BlenderNodeAnim(): if not action: name = animation.track_name + "_" + obj.name action = bpy.data.actions.new(name) + action.id_root = 'OBJECT' gltf.needs_stash.append((obj, animation.track_name, action)) gltf.action_cache[obj.name] = action |