mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 15:35:54 +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;
|
for (auto i = ArrayBegin(GetValue(it)); i != end;
|
||||||
++i) {
|
++i) {
|
||||||
double numberValue;
|
double numberValue;
|
||||||
const bool isNumber = GetDouble(*i, numberValue);
|
const bool isNumber = GetNumber(*i, numberValue);
|
||||||
if (!isNumber) {
|
if (!isNumber) {
|
||||||
if (required) {
|
if (required) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user