From 787ea78f7fa6f0373d80ba1247768402df93f8ad Mon Sep 17 00:00:00 2001 From: Julien Duroure Date: Thu, 31 Mar 2022 21:17:33 +0200 Subject: glTF exporter: fix exporting single armature actions --- io_scene_gltf2/__init__.py | 2 +- io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py index 9bb1939f..c844838b 100755 --- a/io_scene_gltf2/__init__.py +++ b/io_scene_gltf2/__init__.py @@ -4,7 +4,7 @@ bl_info = { 'name': 'glTF 2.0 format', 'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors', - "version": (3, 2, 21), + "version": (3, 2, 22), 'blender': (3, 1, 0), 'location': 'File > Import-Export', 'description': 'Import-Export as glTF 2.0', 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 0a513521..6dd401e9 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py @@ -316,6 +316,7 @@ def __get_blender_actions(blender_object: bpy.types.Object, for act in [a for a in bpy.data.actions if a.id_root == "OBJECT"]: blender_actions.append(act) blender_tracks[act.name] = None + action_on_type[act.name] = "OBJECT" export_user_extensions('gather_actions_hook', export_settings, blender_object, blender_actions, blender_tracks, action_on_type) -- cgit v1.2.3