Fix byte offset optionality for sparse accessor indices and values
diff --git a/tiny_gltf.h b/tiny_gltf.h
index 821f2b5..d0445e6 100644
--- a/tiny_gltf.h
+++ b/tiny_gltf.h
@@ -4238,7 +4238,7 @@
ParseIntegerProperty(&indices_buffer_view, err, indices_obj, "bufferView",
true);
ParseIntegerProperty(&indices_byte_offset, err, indices_obj, "byteOffset",
- true);
+ false);
ParseIntegerProperty(&component_type, err, indices_obj, "componentType",
true);
@@ -4246,7 +4246,7 @@
ParseIntegerProperty(&values_buffer_view, err, values_obj, "bufferView",
true);
ParseIntegerProperty(&values_byte_offset, err, values_obj, "byteOffset",
- true);
+ false);
accessor->sparse.count = count;
accessor->sparse.indices.bufferView = indices_buffer_view;