diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-12-14 10:42:04 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-12-14 10:42:04 +0300 |
commit | 18246268e802958bf02ffa14c764d2cc32ddb4d4 (patch) | |
tree | 9359d37137116430f478945f938e71a1d3be8929 /io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py | |
parent | 13b7618409aac26eb512133373828ab9e92a6ac7 (diff) |
glTF exporter: define a user extension API
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py')
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py index a2e903e5..bf78dabd 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py @@ -19,6 +19,7 @@ from io_scene_gltf2.io.com import gltf2_io from io_scene_gltf2.blender.exp import gltf2_blender_gather_animation_channels from io_scene_gltf2.io.com.gltf2_io_debug import print_console from ..com.gltf2_blender_extras import generate_extras +from io_scene_gltf2.io.exp.gltf2_io_user_extensions import export_user_extensions def gather_animations(blender_object: bpy.types.Object, @@ -108,6 +109,8 @@ def __gather_animation(blender_action: bpy.types.Action, if not animation.channels: return None + export_user_extensions('gather_animation_hook', export_settings, animation, blender_action, blender_object) + return animation |