spnda / fastgltf

A modern C++17 glTF 2.0 library focused on speed, correctness, and usability
https://fastgltf.readthedocs.io/v0.8.x/
MIT License
315 stars 48 forks source link

Don't use 0 as the default value for fields #42

Closed DethRaid closed 10 months ago

DethRaid commented 10 months ago

fastgltf seems to use 0 as the default value for various fields - possibly because you're not setting an explicit default value. This has caused a bunch of issues we I'm trying to create glTF files. I'd like to request that fastgltf only use 0 as a default value when it's what the glTF spec says as the default, and use a different value when appropriate