galacean / engine

A typescript interactive engine, support 2D, 3D, animation, physics, built on WebGL and glTF.
https://galacean.antgroup.com/engine
MIT License
4.2k stars 299 forks source link

Fix gltf accessor's bufferView could be undefined #2013

Closed gz65555 closed 7 months ago

gz65555 commented 7 months ago

Please check if the PR fulfills these requirements

follow the instruction of standard of gltf: https://github.com/KhronosGroup/glTF/blob/main/specification/2.0/schema/accessor.schema.json#L12C13-L12C212

The bufferView field of accessor could be undefined. We should use 0 instead of undefined.