mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-10-21 13:31:05 +08:00

Adds 'const' to all Serialize*() methods. Updates WriteImageData callback to take a URI out pointer that was previously being written to the Image::uri, which is now const. This breaks the WriteImageData API and as a side effect, Image::uri will no longer contain the written image URI after saving. Adds test serialize-const-image, which verifies the model's image is not changed (because it's const), but the uri written to the gltf json is still correct. Adds test serialize-image-callback that defines a WriteImageDataFunction and also verifies the uri can be overwritten.