File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ private static Object LoadModel (string fbxFileName)
80
80
if ( unityMainAsset ) {
81
81
model = UnityEditor . PrefabUtility . InstantiatePrefab ( unityMainAsset ) ;
82
82
}
83
+ UnityEditor . Selection . objects = new Object [ ] { model } ;
83
84
84
85
return model ;
85
86
}
@@ -173,6 +174,11 @@ public static void LastSavedModel ()
173
174
// make turntable the active scene
174
175
UnityEngine . SceneManagement . SceneManager . SetActiveScene ( scene ) ;
175
176
177
+ // find Scene window
178
+ var sceneWindow = UnityEditor . EditorWindow . GetWindow < UnityEditor . SceneView > ( title : null , focus : true ) ;
179
+ //sceneWindow.maximized = true;
180
+ sceneWindow . FrameSelected ( ) ;
181
+
176
182
if ( AutoUpdateEnabled ( ) ) {
177
183
LoadLastSavedModel ( ) ;
178
184
You can’t perform that action at this time.
0 commit comments