Update README. Add note on tinygltf::Value for extensions.

This commit is contained in:
Syoyo Fujita
2019-07-24 19:52:22 +09:00
parent 046400b17f
commit 0ee273fdfa
2 changed files with 11 additions and 2 deletions

View File

@@ -301,7 +301,9 @@ TEST_CASE("pbr-khr-texture-transform", "[material]") {
REQUIRE(texform.count("scale"));
REQUIRE(texform["scale"].IsArray());
std::cout << "ty " << int(texform["scale"].Get(0).Type()) << "\n";
// It looks json.hpp parse integer JSON number as integer, not floating point.
// so we'll check if Value is number(floating point) or integer value.
REQUIRE(texform["scale"].Get(0).IsNumberOrInt());
REQUIRE(texform["scale"].Get(1).IsNumberOrInt());