syoyo / tinygltf

Header only C++11 tiny glTF 2.0 library
MIT License
2.01k stars 409 forks source link

KHR_lights_punctual: Serialize node light refs #426

Closed agnat closed 1 year ago

agnat commented 1 year ago

This is surprisingly involved:

  1. Add non-const json_iterator, FindMember(…) and GetValue(…)
  2. Add json utilities IsEmpty(…) and Erase(…)
  3. Serialize the property and clean up
syoyo commented 1 year ago

Good! Let me give some time to review it.

syoyo commented 1 year ago

Merged! Thanks!

TODO: Supply an unit test for KHR_lights_punctual + light node index.