Describe the bug
Can't export object with animation and "full collection hierarchy" in glTF. When trying to export object with the full collection hierarchy it say "AttributeError: 'Collection' object has no attribute 'animation_data' . Did you mean: 'animation_data_clear' " and don't export the element.
To Reproduce
Create animation (already done in the .zip project)
Go to 'export > glTF 2.0 (.glb/.gltf)'
Click on 'Data > SceneGraph > Full Collection Hierarchy'
Click on Animation and Select Animation mode all other mode than 'NLA Tracks' ('Actions', 'Active actions merged', 'Broadcat actions', 'Scene') → 'NLA Tracks' doesn't stop the export but the animations are not exported
Click on 'Export glTF 2.0'
Expected behavior
glTF export of a model that include the objects wanted (based on the 'Include' element selected during export)
Describe the bug Can't export object with animation and "full collection hierarchy" in glTF. When trying to export object with the full collection hierarchy it say "AttributeError: 'Collection' object has no attribute 'animation_data' . Did you mean: 'animation_data_clear' " and don't export the element.
To Reproduce
Expected behavior glTF export of a model that include the objects wanted (based on the 'Include' element selected during export)
Screenshots
![image](https://github.com/user-attachments/assets/5956b7bc-b9d7-4f83-ba61-3591cf044a33)
.blend file IssueExportingHierarchy.zip
Version