Skip to content

Commit b9eb134

Browse files
authored
Merge pull request #115 from Unity-Technologies/UNI-24489-move-turntable-menu-item-to-settings
UNI-24489 Move Autoload Last Saved Prefab menu item to export settings
2 parents fba9544 + 4ca6bc2 commit b9eb134

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ public override void OnInspectorGUI() {
9898
);
9999

100100
GUILayout.EndHorizontal ();
101+
102+
EditorGUILayout.Space ();
103+
if (GUILayout.Button (new GUIContent ("Auto Review",
104+
"Opens turntable review of last saved prefab."))) {
105+
FbxExporters.Review.TurnTable.LastSavedModel ();
106+
}
107+
101108
GUILayout.FlexibleSpace ();
102109
GUILayout.EndScrollView ();
103110

Assets/FbxExporters/Editor/ReviewLastSavedModel.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ namespace Review
1414
[UnityEditor.InitializeOnLoad]
1515
public class TurnTable
1616
{
17-
const string MenuItemName = "FbxExporters/Turntable Review/Autoload Last Saved Prefab";
18-
1917
const string DefaultScenesPath = "Assets";
2018
const string DefaultSceneName = "FbxExporters_TurnTableReview";
2119

@@ -26,12 +24,6 @@ public class TurnTable
2624
static string LastFilePath = null;
2725
static Object LastModel = null;
2826

29-
[UnityEditor.MenuItem (MenuItemName, false, 10)]
30-
public static void OnMenu ()
31-
{
32-
LastSavedModel ();
33-
}
34-
3527
private static System.IO.FileInfo GetLastSavedFile (string directoryPath, string ext = ".fbx")
3628
{
3729
System.IO.DirectoryInfo directoryInfo = new System.IO.DirectoryInfo (directoryPath);

0 commit comments

Comments
 (0)