Skip to content

Commit 286016e

Browse files
committed
fix merge compile errors
1 parent 77a2158 commit 286016e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Assets/FbxExporters/Editor/ExportModelEditorWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ protected override void Export(){
318318
return;
319319
}
320320

321-
if (ModelExporter.ExportObjects (filePath, m_toExport, ExportSettings.instance.exportModelSettings, exportType: m_animExportType) != null) {
321+
if (ModelExporter.ExportObjects (filePath, m_toExport, ExportSettings.instance.exportModelSettings, animExportType: m_animExportType) != null) {
322322
// refresh the asset database so that the file appears in the
323323
// asset folder view.
324324
AssetDatabase.Refresh ();

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2719,7 +2719,7 @@ public enum TransformExportType { Local, Global, Reset };
27192719
/// </summary>
27202720
public int ExportAll (
27212721
IEnumerable<UnityEngine.Object> unityExportSet,
2722-
Dictionary<GameObject, AnimationOnlyExportData> animationExportData
2722+
Dictionary<GameObject, AnimationOnlyExportData> animationExportData,
27232723
AnimationExportType animationExportType = AnimationExportType.all)
27242724
{
27252725
exportCancelled = false;
@@ -2824,7 +2824,7 @@ Dictionary<GameObject, AnimationOnlyExportData> animationExportData
28242824
}
28252825

28262826
Vector3 center = Vector3.zero;
2827-
TransformExportType exportType = TransformExportType.Global;
2827+
TransformExportType transformExportType = TransformExportType.Global;
28282828
switch(ExportOptions.GetObjectPosition()){
28292829
case ExportModelSettingsSerialize.ObjectPosition.LocalCentered:
28302830
// one object to export -> move to (0,0,0)
@@ -2837,7 +2837,7 @@ Dictionary<GameObject, AnimationOnlyExportData> animationExportData
28372837
center = FindCenter(revisedExportSet);
28382838
break;
28392839
case ExportModelSettingsSerialize.ObjectPosition.Reset:
2840-
exportType = TransformExportType.Reset;
2840+
transformExportType = TransformExportType.Reset;
28412841
break;
28422842
// absolute center -> don't do anything
28432843
default:
@@ -2852,7 +2852,7 @@ Dictionary<GameObject, AnimationOnlyExportData> animationExportData
28522852
}
28532853
else {
28542854
exportProgress = this.ExportTransformHierarchy (unityGo, fbxScene, fbxRootNode,
2855-
exportProgress, count, center, exportType, ExportOptions.GetLODExportType());
2855+
exportProgress, count, center, transformExportType, ExportOptions.GetLODExportType());
28562856
}
28572857
if (exportCancelled || exportProgress < 0) {
28582858
Debug.LogWarning ("Export Cancelled");
@@ -3664,7 +3664,7 @@ public static string ExportObjects (
36643664
string filePath,
36653665
UnityEngine.Object[] objects = null,
36663666
IExportOptions exportOptions = null,
3667-
AnimationExportType exportType = AnimationExportType.all)
3667+
AnimationExportType animExportType = AnimationExportType.all)
36683668
{
36693669
LastFilePath = filePath;
36703670

@@ -3678,7 +3678,7 @@ public static string ExportObjects (
36783678
}
36793679

36803680
Dictionary<GameObject, AnimationOnlyExportData> animationExportData = null;
3681-
switch (animationExportType)
3681+
switch (animExportType)
36823682
{
36833683
case AnimationExportType.timelineAnimationClip:
36843684
// 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 (
37053705
break;
37063706
}
37073707

3708-
if (fbxExporter.ExportAll (objects, animationExportData, animationExportType) > 0) {
3708+
if (fbxExporter.ExportAll (objects, animationExportData, animExportType) > 0) {
37093709
string message = string.Format ("Successfully exported: {0}", filePath);
37103710
UnityEngine.Debug.Log (message);
37113711

@@ -3720,7 +3720,7 @@ public static string ExportObject (
37203720
IExportOptions exportOptions = null,
37213721
AnimationExportType exportType = AnimationExportType.all)
37223722
{
3723-
return ExportObjects(filePath, new Object[] { root }, exportOptions, exportType: exportType);
3723+
return ExportObjects(filePath, new Object[] { root }, exportOptions, animExportType: exportType);
37243724
}
37253725

37263726
private static void EnsureDirectory (string path)

0 commit comments

Comments
 (0)