Skip to content

Commit

Permalink
Add test for inverse bind matrices being optional
Browse files Browse the repository at this point in the history
  • Loading branch information
danwillm committed Jul 1, 2024
1 parent 2e7ba45 commit 4ad8c82
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Binary file added tests/issue-492.glb
Binary file not shown.
18 changes: 18 additions & 0 deletions tests/tester.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

0 comments on commit 4ad8c82

Please sign in to comment.