Browse Source

add a unittest.

kimkulling 5 năm trước cách đây
mục cha
commit
1b0b4d8d1a

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 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);
+}

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác