gltf-rs / gltf

A crate for loading glTF 2.0
Apache License 2.0
534 stars 124 forks source link

Make byte_offset optional for sparse accessors #381

Closed elrnv closed 1 year ago

elrnv commented 1 year ago

This fixes validation of sparse accessors without buffer_views, which must not have a byte_offset. This is not explicit in the spec but is in the official validator (see https://github.com/KhronosGroup/glTF-Validator/issues/207)

alteous commented 1 year ago

Well spotted and thanks for the PR.

elrnv commented 1 year ago

Should be good to go, @alteous.