Skip to content

Commit 74dac04

Browse files
committed
remove ExportComponentAnimation function
just move contents into ExportComponents()
1 parent cee77f0 commit 74dac04

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,7 +1905,9 @@ protected bool ExportComponents(FbxScene fbxScene)
19051905

19061906
// export all GameObjects that have animation
19071907
if (animationNodes.Count > 0) {
1908-
ExportComponentAnimation (animationNodes, fbxScene);
1908+
foreach (var go in animationNodes) {
1909+
ExportAnimation (go, fbxScene);
1910+
}
19091911
}
19101912

19111913
return true;
@@ -1923,20 +1925,6 @@ protected bool GameObjectHasAnimation(GameObject go){
19231925
go.GetComponent<UnityEngine.Playables.PlayableDirector> ();
19241926
}
19251927

1926-
/// <summary>
1927-
/// Exports the animation on the given objects.
1928-
/// </summary>
1929-
/// <returns><c>true</c>, if animation was exported, <c>false</c> otherwise.</returns>
1930-
/// <param name="objects">Objects.</param>
1931-
/// <param name="fbxScene">Fbx scene.</param>
1932-
protected bool ExportComponentAnimation(IEnumerable<GameObject> objects, FbxScene fbxScene)
1933-
{
1934-
foreach (var go in objects) {
1935-
ExportAnimation (go, fbxScene);
1936-
}
1937-
return true;
1938-
}
1939-
19401928
/// <summary>
19411929
/// A count of how many GameObjects we are exporting, to have a rough
19421930
/// idea of how long creating the scene will take.

0 commit comments

Comments
 (0)