warrenm / GLTFKit2

A glTF 2.0 asset loader and exporter for Objective-C and Swift.
MIT License
150 stars 26 forks source link

Crash when loading animation #49

Closed BenjaminAlbrectsen closed 5 months ago

BenjaminAlbrectsen commented 6 months ago

Hi, I've been experiencing a crash every time I try to load this asset:

https:/firebasestorage.googleapis.com/v0/b/gains-dev-4043d.appspot.com/o/artwork%2Fspatial%2Fexercises%2FLeg%20Press.glb?alt=media&token=5f564d93-fd66-45e2-8683-c6baa3521964

Logs:

Assertion failed: (accessor.sparse.indexComponentType == GLTFComponentTypeUnsignedShort || accessor.sparse.indexComponentType == GLTFComponentTypeUnsignedInt), function GLTFSCNPackedDataForAccessor, file GLTFSceneKit.m, line 341.
warrenm commented 6 months ago

Sure enough, we didn't support 8-bit indices in sparse accessors. That should be addressed by 1bbc10e.

warrenm commented 6 months ago

This fix has been incorporated into the 0.5.7 release.

warrenm commented 5 months ago

This issue will be automatically closed in seven days if no further response is received.

BenjaminAlbrectsen commented 5 months ago

This has been fixed