File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -77,9 +77,8 @@ public static GameObject[] CreateInstantiatedModelPrefab (
77
77
GameObject [ ] unityGameObjectsToConvert )
78
78
{
79
79
var toExport = ModelExporter . RemoveRedundantObjects ( unityGameObjectsToConvert ) ;
80
- var wasExported = Enumerable . ToArray ( toExport ) ;
81
- ConvertToPrefabEditorWindow . Init ( wasExported ) ;
82
- return wasExported ;
80
+ ConvertToPrefabEditorWindow . Init ( toExport ) ;
81
+ return toExport . ToArray ( ) ;
83
82
}
84
83
85
84
/// <summary>
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ namespace Editor
13
13
public class ConvertToPrefabEditorWindow : ExportOptionsEditorWindow
14
14
{
15
15
protected override GUIContent WindowTitle { get { return new GUIContent ( "Convert Options" ) ; } }
16
- protected override float MinWindowHeight { get { return 280 ; } }
16
+ protected override float MinWindowHeight { get { return 280 ; } } // determined by trial and error
17
17
protected override string ExportButtonName { get { return "Convert" ; } }
18
18
private GameObject [ ] m_toConvert ;
19
19
private string m_prefabFileName = "" ;
@@ -27,7 +27,7 @@ public static void Init (IEnumerable<GameObject> toConvert)
27
27
}
28
28
29
29
protected void SetGameObjectsToConvert ( IEnumerable < GameObject > toConvert ) {
30
- m_toConvert = Enumerable . ToArray ( toConvert ) ;
30
+ m_toConvert = toConvert . OrderBy ( go => go . name ) . ToArray ( ) ;
31
31
32
32
if ( m_toConvert . Length == 1 ) {
33
33
m_prefabFileName = m_toConvert [ 0 ] . name ;
You can’t perform that action at this time.
0 commit comments