add a unittest.

pull/3279/head
kimkulling 2020-06-12 11:43:31 +02:00
parent 99d82328a4
commit 1b0b4d8d1a
2 changed files with 616 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@ -534,3 +534,9 @@ TEST_F(utglTF2ImportExport, norootnode_scenewithoutnodes) {
ASSERT_NE(scene, nullptr); ASSERT_NE(scene, nullptr);
ASSERT_NE(scene->mRootNode, nullptr); ASSERT_NE(scene->mRootNode, nullptr);
} }
TEST_F(utglTF2ImportExport, norootnode_issue_3269) {
Assimp::Importer importer;
const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/glTF2/issue_3269/texcoord_crash.gltf", aiProcess_ValidateDataStructure);
ASSERT_NE(scene, nullptr);
}