Skip to content

Commit d2dc41d

Browse files
committed
remove turntable scene from export settings
1 parent f1e609a commit d2dc41d

File tree

2 files changed

+2
-31
lines changed

2 files changed

+2
-31
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,6 @@ public override void OnInspectorGUI() {
8585
}
8686
}
8787
}
88-
GUILayout.EndHorizontal ();
89-
GUILayout.BeginHorizontal ();
90-
91-
GUILayout.Label (new GUIContent (
92-
"Turntable Scene:",
93-
"Scene to use for reviewing models. If none, a scene will be created on review."));
94-
95-
exportSettings.turntableScene = EditorGUILayout.ObjectField (
96-
exportSettings.turntableScene, typeof(SceneAsset), false
97-
);
98-
9988
GUILayout.EndHorizontal ();
10089

10190
EditorGUILayout.Space ();
@@ -230,9 +219,6 @@ public static string kDefaultAdskRoot {
230219

231220
public int selectedMayaApp = 0;
232221

233-
[SerializeField]
234-
public UnityEngine.Object turntableScene;
235-
236222
/// <summary>
237223
/// The path where Convert To Model will save the new fbx and prefab.
238224
///
@@ -259,7 +245,6 @@ protected override void LoadDefaults()
259245
centerObjects = true;
260246
keepOriginalAfterConvert = false;
261247
convertToModelSavePath = kDefaultSavePath;
262-
turntableScene = null;
263248
mayaOptionPaths = null;
264249
mayaOptionNames = null;
265250
}
@@ -444,20 +429,6 @@ public static string GetSelectedMayaPath()
444429
return instance.mayaOptionPaths [instance.selectedMayaApp];
445430
}
446431

447-
public static string GetTurnTableSceneName(){
448-
if (instance.turntableScene) {
449-
return instance.turntableScene.name;
450-
}
451-
return null;
452-
}
453-
454-
public static string GetTurnTableScenePath(){
455-
if (instance.turntableScene) {
456-
return AssetDatabase.GetAssetPath (instance.turntableScene);
457-
}
458-
return null;
459-
}
460-
461432
/// <summary>
462433
/// The path where Convert To Model will save the new fbx and prefab.
463434
/// This is relative to the Application.dataPath ; it uses '/' as the

Assets/FbxExporters/Editor/ReviewLastSavedModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public static void LastSavedModel ()
196196
System.Collections.Generic.List<UnityEngine.SceneManagement.Scene> scenes
197197
= new System.Collections.Generic.List<UnityEngine.SceneManagement.Scene> ();
198198

199-
string desiredSceneName = FbxExporters.EditorTools.ExportSettings.GetTurnTableSceneName ();
199+
string desiredSceneName = "";//FbxExporters.EditorTools.ExportSettings.GetTurnTableSceneName ();
200200
if (string.IsNullOrEmpty (desiredSceneName)) {
201201
desiredSceneName = DefaultSceneName;
202202
}
@@ -219,7 +219,7 @@ public static void LastSavedModel ()
219219
// if turntable scene not added to list of scenes
220220
if (!scene.IsValid () || !scene.isLoaded)
221221
{
222-
string scenePath = FbxExporters.EditorTools.ExportSettings.GetTurnTableScenePath ();
222+
string scenePath = "";//FbxExporters.EditorTools.ExportSettings.GetTurnTableScenePath ();
223223
if (string.IsNullOrEmpty(scenePath)) {
224224
// and if for some reason the turntable scene is missing create an empty scene
225225
// NOTE: we cannot use NewScene because it will force me to save the modified Untitled scene

0 commit comments

Comments
 (0)