qmuntal / gltf

Go library for encoding glTF 2.0 files
https://www.khronos.org/gltf/
BSD 2-Clause "Simplified" License
241 stars 32 forks source link

modeler: ensure Read funcs always return a slice with the right length #52

Closed qmuntal closed 2 years ago

qmuntal commented 2 years ago

In some situations where modeler.Read* functions were supplied with a buffer longer than accessor.Count, the returned slice had the buffer length instead of the length defined by accessor.Count.