Skip to content

Commit 7e04c2c

Browse files
committed
redirecting standard error for max causes max to hang
when trying to install integration. Try getting error from standard output instead
1 parent e64a05c commit 7e04c2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/FbxExporters/Editor/InstallIntegration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ public static int InstallMaxPlugin(string maxExe){
627627
myProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
628628
myProcess.StartInfo.CreateNoWindow = true;
629629
myProcess.StartInfo.UseShellExecute = false;
630-
myProcess.StartInfo.RedirectStandardError = true;
630+
myProcess.StartInfo.RedirectStandardOutput = true;
631631

632632
myProcess.StartInfo.Arguments = string.Format("-q -silent -mxs \"{0}\"", installScript);
633633

@@ -649,7 +649,7 @@ public static int InstallMaxPlugin(string maxExe){
649649

650650
// print any errors
651651
if(ExitCode != 0){
652-
string stderr = myProcess.StandardError.ReadToEnd();
652+
string stderr = myProcess.StandardOutput.ReadToEnd();
653653
if(!string.IsNullOrEmpty(stderr)){
654654
Debug.LogError(string.Format("3ds Max installation error (exit code: {0}): {1}", ExitCode, stderr));
655655
}

0 commit comments

Comments
 (0)