Skip to content

Commit f9408b9

Browse files
committed
code review fixes
1 parent 6f83fb2 commit f9408b9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Assets/FbxExporters/Editor/ExportModelEditorWindow.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using UnityEditor;
55
using FbxExporters.EditorTools;
66
using UnityEditor.Presets;
7+
using System.Linq;
78

89
namespace FbxExporters
910
{
@@ -271,7 +272,7 @@ public static void Init (IEnumerable<UnityEngine.Object> toExport, string filena
271272
}
272273

273274
protected int SetGameObjectsToExport(IEnumerable<UnityEngine.Object> toExport){
274-
m_toExport = System.Linq.Enumerable.ToArray (toExport);
275+
m_toExport = toExport.ToArray ();
275276
return m_toExport.Length;
276277
}
277278

@@ -303,6 +304,11 @@ private void SetIsPlayableDirector(bool isPlayableDirector){
303304
m_isPlayableDirector = isPlayableDirector;
304305
}
305306

307+
/// <summary>
308+
/// Gets the filename from objects to export.
309+
/// </summary>
310+
/// <returns>The object's name if one object selected, "Untitled" if multiple
311+
/// objects selected for export.</returns>
306312
protected string GetFilenameFromObjects(){
307313
var filename = "";
308314
if (m_toExport.Length == 1) {

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3121,7 +3121,7 @@ public static bool OnValidateMenuItem ()
31213121
{
31223122
return true;
31233123
}
3124-
3124+
31253125
/// <summary>
31263126
/// Validate the menu item defined by the function above.
31273127
/// </summary>

0 commit comments

Comments
 (0)