File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -180,17 +180,16 @@ public static int ConfigureMaya(string version)
180
180
#elif UNITY_EDITOR_LINUX
181
181
throw new NotImplementedException ( ) ;
182
182
#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 ) ;
184
184
185
185
if ( ! System . IO . File . Exists ( mayaPath ) )
186
186
{
187
187
Debug . LogError ( string . Format ( "No maya installation found at {0}" , mayaPath ) ) ;
188
188
return - 1 ;
189
189
}
190
190
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 ) ;
194
193
#endif
195
194
myProcess . EnableRaisingEvents = true ;
196
195
myProcess . Start ( ) ;
You can’t perform that action at this time.
0 commit comments