mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 00:36:00 +08:00
Fix bug in ParseNumberArrayProperty()
Only doubles were being accepted instead of any number (including ordinals)
This commit is contained in:
parent
5cecc41db9
commit
9b6f52e98a
@ -3217,7 +3217,7 @@ static bool ParseNumberArrayProperty(std::vector<double> *ret, std::string *err,
|
||||
for (auto i = ArrayBegin(GetValue(it)); i != end;
|
||||
++i) {
|
||||
double numberValue;
|
||||
const bool isNumber = GetDouble(*i, numberValue);
|
||||
const bool isNumber = GetNumber(*i, numberValue);
|
||||
if (!isNumber) {
|
||||
if (required) {
|
||||
if (err) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user