qmuntal / gltf

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

Animation channel's Sampler should be required #80

Closed mokiat closed 3 months ago

mokiat commented 5 months ago

According to the spec, the sampler field in the channel struct should be required but in the library it is not.

Spec: https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#reference-animation-channel Lib: https://github.com/qmuntal/gltf/blob/887e847fa6c77ba802f74c546a9171e688536a8e/gltf.go#L446

qmuntal commented 3 months ago

Thanks! Will fix in next release.