From 9056aee82388c7c240404fc716c3dedd24ecb9f9 Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Thu, 21 Mar 2019 17:03:18 +0100 Subject: [PATCH] Serialize accessor 'normalized' attribute. --- tiny_gltf.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index 3c1015a..e722426 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -569,7 +569,7 @@ struct Accessor { // are not supported std::string name; size_t byteOffset; - bool normalized; // optinal. + bool normalized; // optional. int componentType; // (required) One of TINYGLTF_COMPONENT_TYPE_*** size_t count; // required int type; // (required) One of TINYGLTF_TYPE_*** .. @@ -4615,6 +4615,7 @@ static void SerializeGltfAccessor(Accessor &accessor, json &o) { SerializeNumberProperty("count", accessor.count, o); SerializeNumberArrayProperty("min", accessor.minValues, o); SerializeNumberArrayProperty("max", accessor.maxValues, o); + SerializeValue("normalized", Value(accessor.normalized), o); std::string type; switch (accessor.type) { case TINYGLTF_TYPE_SCALAR: