mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-06-08 03:03:50 +00:00
asset.version is a required field so write "2.0" when asset.version is empty. Fixes #308
This commit is contained in:
@@ -432,7 +432,6 @@ TEST_CASE("serialize-empty-material", "[issue-294]") {
|
||||
nlohmann::json j = nlohmann::json::parse(os.str());
|
||||
|
||||
REQUIRE(1 == j["materials"].size());
|
||||
REQUIRE(j["asset"].is_null());
|
||||
REQUIRE(j["materials"][0].is_object());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user