Parse `extensions` property of Image.
diff --git a/tiny_gltf.h b/tiny_gltf.h
index 9b6494d..6f2855c 100644
--- a/tiny_gltf.h
+++ b/tiny_gltf.h
@@ -456,6 +456,7 @@
// "image/bmp", "image/gif"]
std::string uri; // (required if no mimeType)
Value extras;
+ ExtensionMap extensions;
Image() { bufferView = -1; }
};
@@ -2126,6 +2127,7 @@
}
ParseStringProperty(&image->name, err, o, "name", false);
+ ParseExtensionsProperty(&image->extensions, err, o);
if (hasBufferView) {
double bufferView = -1;
@@ -4014,6 +4016,8 @@
if (image.extras.Type() != NULL_TYPE) {
SerializeValue("extras", image.extras, o);
}
+
+ SerializeExtensionMap(image.extensions, o);
}
static void SerializeGltfMaterial(Material &material, json &o) {