Skip to content

Commit 3117fe3

Browse files
committed
code review fixes
1 parent 9c2ca8c commit 3117fe3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Assets/FbxExporters/Editor/InstallIntegration.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class Integrations
2525
#endif
2626

2727
private static string MAYA_COMMANDS { get {
28-
return string.Format("configureUnityOneClick {4}{0}{4} {4}{1}{4} {4}{2}{4} {3}; scriptJob -idleEvent quit;",
29-
GetProjectPath(), GetAppPath(), GetTempSavePath(), (IsHeadlessInstall()?1:0), ESCAPED_QUOTE);
28+
return string.Format("configureUnityOneClick {0}{1}{0} {0}{2}{0} {0}{3}{0} {4}; scriptJob -idleEvent quit;",
29+
ESCAPED_QUOTE, GetProjectPath(), GetAppPath(), GetTempSavePath(), (IsHeadlessInstall()?1:0));
3030
}}
3131
private static Char[] FIELD_SEPARATORS = new Char[] {':'};
3232

@@ -111,9 +111,9 @@ private static string GetPackagePath()
111111
return System.IO.Path.Combine(Application.dataPath, PACKAGE_NAME);
112112
}
113113

114-
private static string GetTempSavePath()
114+
public static string GetTempSavePath()
115115
{
116-
return Application.dataPath + "/" + FbxExporters.Review.TurnTable.TempSavePath;
116+
return System.IO.Path.Combine(Application.dataPath, FbxExporters.Review.TurnTable.TempSavePath).Replace("\\", "/");
117117
}
118118

119119
private static string GetPackageVersion()

Assets/FbxExporters/Editor/ReviewLastSavedModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private static string GetSceneFilePath ()
5252

5353
private static string GetLastSavedFilePath ()
5454
{
55-
string modelPath = Application.dataPath + "/" + TempSavePath;
55+
string modelPath = FbxExporters.Integrations.GetTempSavePath ();
5656
System.IO.FileInfo fileInfo = GetLastSavedFile (modelPath);
5757

5858
return (fileInfo != null) ? fileInfo.FullName : null;

0 commit comments

Comments
 (0)