@@ -2719,7 +2719,7 @@ public enum TransformExportType { Local, Global, Reset };
2719
2719
/// </summary>
2720
2720
public int ExportAll (
2721
2721
IEnumerable < UnityEngine . Object > unityExportSet ,
2722
- Dictionary < GameObject , AnimationOnlyExportData > animationExportData
2722
+ Dictionary < GameObject , AnimationOnlyExportData > animationExportData ,
2723
2723
AnimationExportType animationExportType = AnimationExportType . all )
2724
2724
{
2725
2725
exportCancelled = false ;
@@ -2824,7 +2824,7 @@ Dictionary<GameObject, AnimationOnlyExportData> animationExportData
2824
2824
}
2825
2825
2826
2826
Vector3 center = Vector3 . zero ;
2827
- TransformExportType exportType = TransformExportType . Global ;
2827
+ TransformExportType transformExportType = TransformExportType . Global ;
2828
2828
switch ( ExportOptions . GetObjectPosition ( ) ) {
2829
2829
case ExportModelSettingsSerialize . ObjectPosition . LocalCentered :
2830
2830
// one object to export -> move to (0,0,0)
@@ -2837,7 +2837,7 @@ Dictionary<GameObject, AnimationOnlyExportData> animationExportData
2837
2837
center = FindCenter ( revisedExportSet ) ;
2838
2838
break ;
2839
2839
case ExportModelSettingsSerialize . ObjectPosition . Reset :
2840
- exportType = TransformExportType . Reset ;
2840
+ transformExportType = TransformExportType . Reset ;
2841
2841
break ;
2842
2842
// absolute center -> don't do anything
2843
2843
default :
@@ -2852,7 +2852,7 @@ Dictionary<GameObject, AnimationOnlyExportData> animationExportData
2852
2852
}
2853
2853
else {
2854
2854
exportProgress = this . ExportTransformHierarchy ( unityGo , fbxScene , fbxRootNode ,
2855
- exportProgress , count , center , exportType , ExportOptions . GetLODExportType ( ) ) ;
2855
+ exportProgress , count , center , transformExportType , ExportOptions . GetLODExportType ( ) ) ;
2856
2856
}
2857
2857
if ( exportCancelled || exportProgress < 0 ) {
2858
2858
Debug . LogWarning ( "Export Cancelled" ) ;
@@ -3664,7 +3664,7 @@ public static string ExportObjects (
3664
3664
string filePath ,
3665
3665
UnityEngine . Object [ ] objects = null ,
3666
3666
IExportOptions exportOptions = null ,
3667
- AnimationExportType exportType = AnimationExportType . all )
3667
+ AnimationExportType animExportType = AnimationExportType . all )
3668
3668
{
3669
3669
LastFilePath = filePath ;
3670
3670
@@ -3678,7 +3678,7 @@ public static string ExportObjects (
3678
3678
}
3679
3679
3680
3680
Dictionary < GameObject , AnimationOnlyExportData > animationExportData = null ;
3681
- switch ( animationExportType )
3681
+ switch ( animExportType )
3682
3682
{
3683
3683
case AnimationExportType . timelineAnimationClip :
3684
3684
// We expect the first argument in the list to be the GameObject, the second one is the Animation Clip/Track we are exporting from the timeline
@@ -3705,7 +3705,7 @@ public static string ExportObjects (
3705
3705
break ;
3706
3706
}
3707
3707
3708
- if ( fbxExporter . ExportAll ( objects , animationExportData , animationExportType ) > 0 ) {
3708
+ if ( fbxExporter . ExportAll ( objects , animationExportData , animExportType ) > 0 ) {
3709
3709
string message = string . Format ( "Successfully exported: {0}" , filePath ) ;
3710
3710
UnityEngine . Debug . Log ( message ) ;
3711
3711
@@ -3720,7 +3720,7 @@ public static string ExportObject (
3720
3720
IExportOptions exportOptions = null ,
3721
3721
AnimationExportType exportType = AnimationExportType . all )
3722
3722
{
3723
- return ExportObjects ( filePath , new Object [ ] { root } , exportOptions , exportType : exportType ) ;
3723
+ return ExportObjects ( filePath , new Object [ ] { root } , exportOptions , animExportType : exportType ) ;
3724
3724
}
3725
3725
3726
3726
private static void EnsureDirectory ( string path )
0 commit comments