warrenm / GLTFKit2

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

Crash when converting model containing 8-bit sparse accessor indices #52

Closed kourion11 closed 8 months ago

kourion11 commented 8 months ago

Hi, it gives an error and crashes the application when using this model Error: Assertion failed: (accessor.sparse.indexComponentType == GLTFComponentTypeUnsignedShort || accessor.sparse.indexComponentType == GLTFComponentTypeUnsignedInt), function GLTFSCNPackedDataForAccessor, file GLTFSceneKit.m, line 321. Model: avatar_1705565985793.glb.zip

warrenm commented 8 months ago

This sounds like a duplicate of #49. Make sure you've updated to at least 1bbc10e or version 0.5.7.

kourion11 commented 8 months ago

Sorry for a duplicate! Thank you!

warrenm commented 8 months ago

Thanks for confirming!