Skip to content

Commit 481540e

Browse files
committed
CR changes
1 parent 7722717 commit 481540e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Assets/FbxExporters/Editor/InstallIntegration.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,17 +180,16 @@ public static int ConfigureMaya(string version)
180180
#elif UNITY_EDITOR_LINUX
181181
throw new NotImplementedException();
182182
#else
183-
string mayaPath = string.Format ("C:/Program Files/Autodesk/Maya{0}/maya.exe", version);
183+
string mayaPath = string.Format ("C:/Program Files/Autodesk/Maya{0}/bin/maya.exe", version);
184184

185185
if (!System.IO.File.Exists(mayaPath))
186186
{
187187
Debug.LogError (string.Format ("No maya installation found at {0}", mayaPath));
188188
return -1;
189189
}
190190

191-
myProcess.StartInfo.FileName = "C:/Windows/system32/cmd.exe";
192-
string mayaCommandLine = string.Format("{0} -command '{1}'", mayaPath, MAYA_COMMANDS);
193-
myProcess.StartInfo.Arguments = "/c " + mayaCommandLine;
191+
myProcess.StartInfo.FileName = mayaPath;
192+
myProcess.StartInfo.Arguments = string.Format("{0} -command '{1}'", mayaPath, MAYA_COMMANDS);
194193
#endif
195194
myProcess.EnableRaisingEvents = true;
196195
myProcess.Start();

0 commit comments

Comments
 (0)