Missing Default implementation for some items
To construct a new gltf file it'd be much easier if all of the struct in gltf-json implemented the Default trait.
Ex gltf_json::Buffer has no default.
(Have not checked the others)
I see the exporter is not planned yet, #187 So I close the issue
This should be the case, so re-opening.
The main problem with implementing default values is (and this is the case for export more generally) that indices may be out of bounds. This isn't a problem per se but may be surprising. For the sake of simplicity, I say we implement Default anyway, set default indices to zero, and call validate upon export.
I experienced with this idea and finally i created new, with_index functions where default was not possible. It seems safer and ergonomic too. (Sorry no pr as i've hacked too much for my minimal usacase) Or instead of zero some extremal max value'd be better that fails on validate for sure.