glTF exporter: fix exporting single armature actions

This commit is contained in:
Julien Duroure 2022-03-31 21:17:33 +02:00
parent a1f9883f53
commit 787ea78f7f
2 changed files with 2 additions and 1 deletions

View File

@ -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',

View File

@ -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)