gltf
gltf copied to clipboard
Stop computing the glb length in the example
to_writer computes the length internally, and the length provided in the header is ignored. Thus computing it yourself only adds complexity.
Hello, thanks!
It feels a bit weird to have a random zero in the middle of an example. IMO we should either add a comment to explain that length is recomputed anyways thus we can set the header length to whatever, or add an impl Default for Header. There's no much room for changing anything in the header:
- magic: Must be b"glTF".
- version: Must be 2.
- length: is ignored most of the time ?