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>2020-02-23 21:22:42 +0300
committerJulien Duroure <julien.duroure@gmail.com>2020-02-23 21:22:42 +0300
commit9920e00e5fbeee555ce0bef48b86ce4994a443f1 (patch)
treebffeb581d126324facb0af850e304de9a721473b /io_scene_gltf2/blender
parentb966913caab34eef52f148f9ccf6770cf527d87b (diff)
glTF: fix re-exporting mutltiple animations (regression)
Diffstat (limited to 'io_scene_gltf2/blender')
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_animation_bone.py1
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_animation_node.py1
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