From 9b6f52e98ae667ad1d18f17f412fd37940879437 Mon Sep 17 00:00:00 2001 From: jrkoonce <30676875+jrkoonce@users.noreply.github.com> Date: Thu, 29 Aug 2019 13:56:58 -0500 Subject: [PATCH] Fix bug in ParseNumberArrayProperty() Only doubles were being accepted instead of any number (including ordinals) --- tiny_gltf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index 6f7d341..9e3c9f8 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -3217,7 +3217,7 @@ static bool ParseNumberArrayProperty(std::vector *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) {