瀏覽代碼

add a unittest.

kimkulling 5 年之前
父節點
當前提交
1b0b4d8d1a
共有 2 個文件被更改,包括 418 次插入0 次删除
  1. 412 0
      test/models/glTF2/issue_3269/texcoord_crash.gltf
  2. 6 0
      test/unit/utglTF2ImportExport.cpp

文件差異過大導致無法顯示
+ 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, 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);
+}

部分文件因文件數量過多而無法顯示