mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-15 23:06:01 +08:00
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:
parent
b721fb76c6
commit
4748ad61c0
@ -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 &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user