From 4748ad61c06dd9d6c2f8397e9f99bed661020836 Mon Sep 17 00:00:00 2001 From: jianghaosen Date: Tue, 29 Aug 2017 20:08:37 +0800 Subject: [PATCH] fix(row1728): accessor->normalize is a local variables and forget initial it. Beside, the value of p accessor->normalize is a local variables and forget initial it, it may be true or false. Beside, the value of parse glTF do not assign to normalize. --- tiny_gltf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index efd1e1e..3c494d1 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -1725,7 +1725,7 @@ static bool ParseAccessor(Accessor *accessor, std::string *err, accessor->count = static_cast(count); accessor->bufferView = static_cast(bufferView); accessor->byteOffset = static_cast(byteOffset); - + accessor->normalized = normalized; { int comp = static_cast(componentType); if (comp >= TINYGLTF_COMPONENT_TYPE_BYTE &&