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:
Diffstat (limited to 'io_scene_gltf2/blender/imp/gltf2_blender_animation.py')
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_animation.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_animation.py b/io_scene_gltf2/blender/imp/gltf2_blender_animation.py
index c0dcd84e..76fe02c5 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_animation.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_animation.py
@@ -5,7 +5,7 @@ from .gltf2_blender_animation_node import BlenderNodeAnim
from .gltf2_blender_animation_weight import BlenderWeightAnim
from .gltf2_blender_animation_utils import simulate_stash, restore_animation_on_object
from .gltf2_blender_vnode import VNode
-
+from io_scene_gltf2.io.imp.gltf2_io_user_extensions import import_user_extensions
class BlenderAnimation():
"""Dispatch Animation to node or morph weights animation."""
@@ -20,6 +20,8 @@ class BlenderAnimation():
# Things we need to stash when we're done.
gltf.needs_stash = []
+ import_user_extensions('gather_import_animation_before_hook', gltf, anim_idx)
+
for vnode_id in gltf.vnodes:
if isinstance(vnode_id, int):
BlenderNodeAnim.anim(gltf, anim_idx, vnode_id)
@@ -30,6 +32,8 @@ class BlenderAnimation():
for (obj, action) in gltf.needs_stash:
simulate_stash(obj, track_name, action)
+ import_user_extensions('gather_import_animation_after_hook', gltf, anim_idx, track_name)
+
@staticmethod
def restore_animation(gltf, animation_name):
"""Restores the actions for an animation by its track name."""