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/exp/gltf2_blender_gather_animations.py')
-rwxr-xr-xio_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py6
1 files changed, 6 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 0d249660..8939bb23 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py
@@ -172,6 +172,8 @@ def __gather_animation( obj_uuid: int,
print_console("WARNING", "Animation '{}' could not be exported. Cause: {}".format(name, error))
return None
+ export_user_extensions('pre_gather_animation_hook', export_settings, animation, blender_action, blender_object)
+
if not animation.channels:
return None
@@ -266,6 +268,8 @@ def __get_blender_actions(blender_object: bpy.types.Object,
blender_tracks = {}
action_on_type = {}
+ export_user_extensions('pre_gather_actions_hook', export_settings, blender_object)
+
if blender_object.animation_data is not None:
# Collect active action.
if blender_object.animation_data.action is not None:
@@ -308,6 +312,8 @@ def __get_blender_actions(blender_object: bpy.types.Object,
blender_tracks[strip.action.name] = track.name # Always set after possible active action -> None will be overwrite
action_on_type[strip.action.name] = "SHAPEKEY"
+ export_user_extensions('gather_actions_hook', export_settings, blender_object, blender_actions, blender_tracks, action_on_type)
+
# Remove duplicate actions.
blender_actions = list(set(blender_actions))
# sort animations alphabetically (case insensitive) so they have a defined order and match Blender's Action list