Browse Source

add a unittest.

kimkulling 5 years ago
parent
commit
1b0b4d8d1a
2 changed files with 418 additions and 0 deletions
  1. 412 0
      test/models/glTF2/issue_3269/texcoord_crash.gltf
  2. 6 0
      test/unit/utglTF2ImportExport.cpp

File diff suppressed because it is too large
+ 412 - 0
test/models/glTF2/issue_3269/texcoord_crash.gltf


+ 6 - 0
test/unit/utglTF2ImportExport.cpp

@@ -534,3 +534,9 @@ TEST_F(utglTF2ImportExport, norootnode_scenewithoutnodes) {
     ASSERT_NE(scene, 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);
+}

Some files were not shown because too many files changed in this diff