Skip to content

Commit

Permalink
Merge pull request #2005 from KhronosGroup/fix_b104864
Browse files Browse the repository at this point in the history
Single Armature with no animation data will not export all anims
  • Loading branch information
julienduroure authored Sep 25, 2023
2 parents 104c938 + 3a292a1 commit 567c756
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,10 @@ def __get_blender_actions(obj_uuid: str,
action_on_type[strip.action.name] = "SHAPEKEY"

# If there are only 1 armature, include all animations, even if not in NLA
# But only if armature has already some animation_data
# If not, we says that this armature is never animated, so don't add these additional actions
if export_settings['gltf_export_anim_single_armature'] is True:
if blender_object.type == "ARMATURE":
if blender_object.type == "ARMATURE" and blender_object.animation_data is not None:
if len(export_settings['vtree'].get_all_node_of_type(VExportNode.ARMATURE)) == 1:
# Keep all actions on objects (no Shapekey animation)
for act in [a for a in bpy.data.actions if a.id_root == "OBJECT"]:
Expand Down

0 comments on commit 567c756

Please sign in to comment.