[Bf-extensions-cvs] [787ea78f] master: glTF exporter: fix exporting single armature actions

Julien Duroure noreply at git.blender.org
Thu Mar 31 21:17:42 CEST 2022


Commit: 787ea78f7fa6f0373d80ba1247768402df93f8ad
Author: Julien Duroure
Date:   Thu Mar 31 21:17:33 2022 +0200
Branches: master
https://developer.blender.org/rBA787ea78f7fa6f0373d80ba1247768402df93f8ad

glTF exporter: fix exporting single armature actions

===================================================================

M	io_scene_gltf2/__init__.py
M	io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py

===================================================================

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)



More information about the Bf-extensions-cvs mailing list