Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Export skin when SkinnedMeshRenderer.bones is empty
Sometimes SkinnedMeshRenderer has an empty array of bones. This is most likely due to an option "Optimize Game Object" on an Import settings Rig tab. This contribution restores skinning information from raw Unity asset data. I can't guarantee that it handles any possible situation but it proved useful in some real cases.
Export skin without animations
Before these changes it was possible to only export both skin & animations or neither of them. Now you can disable animation export but still get skinned meshes exported.
Humanoid animation export
Humanoid animations don't have SRT tracks but instead have special float tracks which control various conceptual properties of the human body. Instead of trying to repeat these calculations, an exporter now plays the final animation in the scene and samples SRT from affected nodes. This allows exporting humanoid animations as regular glTF animations easily.
Export objects without geometry
Commented out a condition which blocked exporting a hierarchy without meshes. It is completely artificial limitation for both Unity and glTF.
Fixes
Accessor bounds (min, max) are now correctly calculated in a case of switching vector handedness.
Minor changes
Empty .bin file is not saved anymore.
Unnecessary fake animation tracks are not allocated.