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.
This commit is contained in:
jianghaosen 2017-08-29 20:08:37 +08:00
parent b721fb76c6
commit 4748ad61c0

View File

@ -1725,7 +1725,7 @@ static bool ParseAccessor(Accessor *accessor, std::string *err,
accessor->count = static_cast<size_t>(count); accessor->count = static_cast<size_t>(count);
accessor->bufferView = static_cast<int>(bufferView); accessor->bufferView = static_cast<int>(bufferView);
accessor->byteOffset = static_cast<size_t>(byteOffset); accessor->byteOffset = static_cast<size_t>(byteOffset);
accessor->normalized = normalized;
{ {
int comp = static_cast<int>(componentType); int comp = static_cast<int>(componentType);
if (comp >= TINYGLTF_COMPONENT_TYPE_BYTE && if (comp >= TINYGLTF_COMPONENT_TYPE_BYTE &&