Skip to content

Commit 27a42ab

Browse files
committed
fix merge issues
- make sure new and existing files are all using the correct namespaces
1 parent af86dab commit 27a42ab

File tree

4 files changed

+3369
-3375
lines changed

4 files changed

+3369
-3375
lines changed

Assets/com.unity.formats.fbx.tests/FbxExporterReflection.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,19 @@ public static bool ExportMaterial(ModelExporter instance, Material unityMaterial
9494

9595
public static string ExportObjects(string filePath,
9696
UnityEngine.Object[] objects = null,
97-
EditorTools.IExportOptions exportOptions = null,
97+
IExportOptions exportOptions = null,
9898
Dictionary<GameObject, IExportData> exportData = null)
9999
{
100100
return (string)InvokeMethodOverload("ExportObjects",
101101
new object[] { filePath, objects, exportOptions, exportData },
102-
new Type[] { typeof(string), typeof(UnityEngine.Object[]), typeof(EditorTools.IExportOptions), typeof(Dictionary<GameObject, IExportData>) });
102+
new Type[] { typeof(string), typeof(UnityEngine.Object[]), typeof(IExportOptions), typeof(Dictionary<GameObject, IExportData>) });
103103
}
104104

105-
public static IExportData GetExportData(GameObject rootObject, AnimationClip animationClip, EditorTools.IExportOptions exportOptions = null)
105+
public static IExportData GetExportData(GameObject rootObject, AnimationClip animationClip, IExportOptions exportOptions = null)
106106
{
107107
return (IExportData)InvokeMethodOverload("GetExportData",
108108
new object[] { rootObject, animationClip, exportOptions },
109-
new Type[] { typeof(GameObject), typeof(AnimationClip), typeof(EditorTools.IExportOptions) });
109+
new Type[] { typeof(GameObject), typeof(AnimationClip), typeof(IExportOptions) });
110110
}
111111

112112
// Redefinition of the internal delegate. There might be a way to re-use the one in ModelExporter

Packages/com.unity.formats.fbx/Editor/Scripts/ExportModelEditorWindow.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,17 +404,16 @@ protected override GameObject GetGameObject()
404404
{
405405
return (IsTimelineAnim)
406406
? AnimationOnlyExportData.GetGameObjectAndAnimationClip(ToExport [0]).Key
407-
: ModelExporter.GetGameObject ( ToExport [0] );
407+
: GetGameObject ();
408408
}
409+
409410
protected override bool DisableTransferAnim {
410411
get {
411412
// don't transfer animation if we are exporting more than one hierarchy, the timeline clips from
412413
// a playable director, or if only the model is being exported
413414
// if we are on the timeline then export length can be more than 1
414415
return ToExport == null || ToExport.Length == 0 || (!IsTimelineAnim && ToExport.Length > 1) || SettingsObject.ModelAnimIncludeOption == ExportSettings.Include.Model;
415416
}
416-
417-
}
418417
}
419418

420419
private bool m_isTimelineAnim = false;

0 commit comments

Comments
 (0)