mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-04-22 22:20:01 +08:00
- always check Parameter::number_value to catch user errors, e.g. setting number_value without setting has_number_value, which will cause it to serialize as a bool but read back in as a float anyway
This commit is contained in:
parent
13b6402388
commit
2bda71c8fb
@ -1245,7 +1245,6 @@ bool Parameter::operator==(const Parameter &other) const {
|
||||
this->has_number_value != other.has_number_value)
|
||||
return false;
|
||||
|
||||
if (this->has_number_value)
|
||||
if (!TINYGLTF_DOUBLE_EQUAL(this->number_value, other.number_value))
|
||||
return false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user