mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-07-06 15:45:13 +08:00
Merge pull request #157 from Selmar/patch-1
correct Value::Equals mistake
This commit is contained in:
commit
fb9f709166
@ -1213,7 +1213,7 @@ static bool Equals(const tinygltf::Value &one, const tinygltf::Value &other) {
|
|||||||
case ARRAY_TYPE: {
|
case ARRAY_TYPE: {
|
||||||
if (one.Size() != other.Size()) return false;
|
if (one.Size() != other.Size()) return false;
|
||||||
for (int i = 0; i < int(one.Size()); ++i)
|
for (int i = 0; i < int(one.Size()); ++i)
|
||||||
if (Equals(one.Get(i), other.Get(i))) return false;
|
if (!Equals(one.Get(i), other.Get(i))) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
case STRING_TYPE:
|
case STRING_TYPE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user