瀏覽代碼

Add failing test.

Malcolm Tyrrell 6 年之前
父節點
當前提交
5b81899302
共有 2 個文件被更改,包括 579 次插入0 次删除
  1. 571 0
      test/models/FBX/close_to_identity_transforms.fbx
  2. 8 0
      test/unit/utFBXImporterExporter.cpp

文件差異過大導致無法顯示
+ 571 - 0
test/models/FBX/close_to_identity_transforms.fbx


+ 8 - 0
test/unit/utFBXImporterExporter.cpp

@@ -188,6 +188,14 @@ TEST_F(utFBXImporterExporter, importCubesComplexTransform) {
     ASSERT_EQ(0u, parent->mNumChildren) << "Leaf node";
 }
 
+TEST_F(utFBXImporterExporter, importCloseToIdentityTransforms) {
+    Assimp::Importer importer;
+    // This was asserting in FBXConverter.cpp because the transforms appeared to be the identity by one test, but not by another.
+    // This asset should now load successfully.
+    const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/FBX/close_to_identity_transforms.fbx", aiProcess_ValidateDataStructure);
+    ASSERT_TRUE(scene);
+}
+
 TEST_F( utFBXImporterExporter, importPhongMaterial ) {
     Assimp::Importer importer;
     const aiScene *scene = importer.ReadFile( ASSIMP_TEST_MODELS_DIR "/FBX/phong_cube.fbx", aiProcess_ValidateDataStructure );

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