Add test for inverse bind matrices being optional

This commit is contained in:
danwillm 2024-07-01 22:32:17 +01:00
parent 2e7ba45a6c
commit 4ad8c82c9e
2 changed files with 18 additions and 0 deletions

BIN
tests/issue-492.glb Normal file

Binary file not shown.

View File

@ -1182,3 +1182,21 @@ TEST_CASE("images-as-is", "[issue-487]") {
}
}
}
TEST_CASE("inverse-bind-matrices-optional", "[issue-492]") {
tinygltf::Model model;
tinygltf::TinyGLTF ctx;
std::string err;
std::string warn;
bool ret = ctx.LoadBinaryFromFile(&model, &err, &warn, "issue-492.glb");
if (!warn.empty()) {
std::cout << "WARN:" << warn << std::endl;
}
if (!err.empty()) {
std::cerr << "ERR:" << err << std::endl;
}
REQUIRE(true == ret);
REQUIRE(err.empty());
}