Skip to content

Commit af65523

Browse files
committed
fix test function
1 parent 63e3e13 commit af65523

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Assets/FbxExporters/Editor/UnitTests/ExporterTestBase.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,9 @@ protected virtual string ExportSelectedObjects(string filename, params Object[]
260260
/// <param name="animOnly">If set to <c>true</c> export animation only.</param>
261261
protected string ExportToFbx (GameObject hierarchy, bool animOnly = false){
262262
string filename = GetRandomFbxFilePath ();
263-
var exportedFilePath = FbxExporters.Editor.ModelExporter.ExportObject (filename, hierarchy, animOnly);
263+
var exportedFilePath = FbxExporters.Editor.ModelExporter.ExportObject (
264+
filename, hierarchy, animOnly? FbxExporters.Editor.ModelExporter.AnimationExportType.componentAnimation : FbxExporters.Editor.ModelExporter.AnimationExportType.all
265+
);
264266
Assert.That (exportedFilePath, Is.EqualTo (filename));
265267
return filename;
266268
}

0 commit comments

Comments
 (0)