Skip to content

Commit 9d255a2

Browse files
committed
use 3DsMax 2018 default location instead of 2017
running max 2017 from the command line generates a non-zero exit code
1 parent 8f058f1 commit 9d255a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Assets/FbxExporters/Editor/InstallIntegration.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,14 +398,15 @@ class MaxIntegration
398398
private const string InstallMaxScriptTemplate =
399399
@"temp = pathConfig.GetDir(#userStartupScripts) + \""/{UnityPluginScript_Name}\"";" +
400400
@"deleteFile temp;" +
401-
@"copyFile \""{UnityPluginScript_Source}\"" temp";
401+
@"copyFile \""{UnityPluginScript_Source}\"" temp;" +
402+
@"quitMax()";
402403

403404
private const string PluginSourceTag = "{UnityPluginScript_Source}";
404405
private const string PluginNameTag = "{UnityPluginScript_Name}";
405406

406407
// TODO: get this from the export settings
407408
private static string GetMaxExe(){
408-
return "C:/Program Files/Autodesk/3ds Max 2017/3dsmax.exe";
409+
return "C:/Program Files/Autodesk/3ds Max 2018/3dsmax.exe";
409410
}
410411

411412
private static string GetInstallScript(){

0 commit comments

Comments
 (0)