Skip to content

Commit 6bb980b

Browse files
authored
UT-1945 Tests Fix. (#532)
Fixed an error in the tests where the importer wasn't being reassigned.
1 parent 3b04322 commit 6bb980b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

com.unity.formats.fbx/Tests/FbxTests/ModelExporterTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,7 @@ public void TestPreserveImportSettings()
10541054

10551055
// re-export with preserve import settings true and verify settings are the same
10561056
ModelExporter.ExportObjects(filename, new Object[] { cube });
1057+
importer = AssetImporter.GetAtPath(filename) as ModelImporter;
10571058
importer.SaveAndReimport();
10581059
Assert.AreEqual(originalImportBlendShapes, importer.importBlendShapes);
10591060

@@ -1066,6 +1067,7 @@ public void TestPreserveImportSettings()
10661067

10671068
exportOptions.SetPreserveImportSettings(false);
10681069
ModelExporter.ExportObjects(filename, new Object[] { cube }, exportOptions);
1070+
importer = AssetImporter.GetAtPath(filename) as ModelImporter;
10691071
importer.SaveAndReimport();
10701072
Assert.AreNotEqual(originalImportBlendShapes, importer.importBlendShapes);
10711073

0 commit comments

Comments
 (0)