jkuhlmann / cgltf

:diamond_shape_with_a_dot_inside: Single-file glTF 2.0 loader and writer written in C99
MIT License
1.46k stars 136 forks source link

Fix parsing of files with targetNames:null #130

Closed zeux closed 3 years ago

zeux commented 3 years ago

targetNames isn't normative and as such can technically be something other than an array. tinygltf seems to use targetNames:null in some cases to designate an empty target array; cgltf previously would refuse to parse files like this and now it discards non-array targetNames values instead.