File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -1905,7 +1905,9 @@ protected bool ExportComponents(FbxScene fbxScene)
1905
1905
1906
1906
// export all GameObjects that have animation
1907
1907
if ( animationNodes . Count > 0 ) {
1908
- ExportComponentAnimation ( animationNodes , fbxScene ) ;
1908
+ foreach ( var go in animationNodes ) {
1909
+ ExportAnimation ( go , fbxScene ) ;
1910
+ }
1909
1911
}
1910
1912
1911
1913
return true ;
@@ -1923,20 +1925,6 @@ protected bool GameObjectHasAnimation(GameObject go){
1923
1925
go . GetComponent < UnityEngine . Playables . PlayableDirector > ( ) ;
1924
1926
}
1925
1927
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
-
1940
1928
/// <summary>
1941
1929
/// A count of how many GameObjects we are exporting, to have a rough
1942
1930
/// idea of how long creating the scene will take.
You can’t perform that action at this time.
0 commit comments