Skip to content

Commit 44bd834

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/master' into UNI-24169-hide-configure-button
2 parents 53ec045 + 302a84d commit 44bd834

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
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/InstallIntegration.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ private static string MAYA_COMMANDS { get {
185185
private const string MODULE_TEMPLATE_PATH = "Integrations/Autodesk/maya"+VERSION_TAG+"/" + MODULE_FILENAME + ".txt";
186186

187187
#if UNITY_EDITOR_OSX
188-
private const string MAYA_MODULES_PATH = "Library/Preferences/Autodesk/Maya/"+VERSION_TAG+"/modules";
188+
private const string MAYA_MODULES_PATH = "Library/Preferences/Autodesk/Maya/modules";
189189
#elif UNITY_EDITOR_LINUX
190-
private const string MAYA_MODULES_PATH = "Maya/"+VERSION_TAG+"/modules";
190+
private const string MAYA_MODULES_PATH = "Maya/modules";
191191
#else
192-
private const string MAYA_MODULES_PATH = "maya/"+VERSION_TAG+"/modules";
192+
private const string MAYA_MODULES_PATH = "maya/modules";
193193
#endif
194194

195195
private static string GetUserFolder()

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);

Assets/FbxExporters/Editor/UnitTests/FbxExportSettingsTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public void TestGetSetFields()
165165
Path.DirectorySeparatorChar);
166166

167167
var defaultAbsolutePath = ExportSettings.GetAbsoluteSavePath();
168-
var dataPath = Path.Combine(appDataPath, ExportSettings.kDefaultSavePath);
168+
var dataPath = Path.GetFullPath(Path.Combine(appDataPath, ExportSettings.kDefaultSavePath));
169169
Assert.AreEqual(dataPath, defaultAbsolutePath);
170170

171171
// set; check that the saved value is platform-independent,

Assets/Integrations/Autodesk/maya2017/scripts/configureUnityOneClick.mel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ global proc configureUnityOneClick(
88
optionVar -stringValue "UnityTempSavePath" $unityTempSavePath;
99
optionVar -stringValue "UnityFbxExportSettings" $unityFbxExportSettings;
1010
optionVar -intValue "UnityOneClick_Headless" $headless;
11+
12+
// set project as the current workspace
13+
workspace -o $unityProject;
1114

1215
// configure auto load of plugin
1316
if (`pluginInfo -q -loaded unityOneClickPlugin` == false)

0 commit comments

Comments
 (0)