File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,13 @@ public override void OnInspectorGUI() {
98
98
) ;
99
99
100
100
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
+
101
108
GUILayout . FlexibleSpace ( ) ;
102
109
GUILayout . EndScrollView ( ) ;
103
110
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ namespace Review
14
14
[ UnityEditor . InitializeOnLoad ]
15
15
public class TurnTable
16
16
{
17
- const string MenuItemName = "FbxExporters/Turntable Review/Autoload Last Saved Prefab" ;
18
-
19
17
const string DefaultScenesPath = "Assets" ;
20
18
const string DefaultSceneName = "FbxExporters_TurnTableReview" ;
21
19
@@ -26,12 +24,6 @@ public class TurnTable
26
24
static string LastFilePath = null ;
27
25
static Object LastModel = null ;
28
26
29
- [ UnityEditor . MenuItem ( MenuItemName , false , 10 ) ]
30
- public static void OnMenu ( )
31
- {
32
- LastSavedModel ( ) ;
33
- }
34
-
35
27
private static System . IO . FileInfo GetLastSavedFile ( string directoryPath , string ext = ".fbx" )
36
28
{
37
29
System . IO . DirectoryInfo directoryInfo = new System . IO . DirectoryInfo ( directoryPath ) ;
You can’t perform that action at this time.
0 commit comments