File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,6 @@ private static string DefaultIntegrationSavePath {
264
264
public static string [ ] DCCVendorLocations {
265
265
get {
266
266
var environmentVariable = Environment . GetEnvironmentVariable ( "UNITY_FBX_3DAPP_VENDOR_LOCATIONS" ) ;
267
- var mayaLocation = System . Environment . GetEnvironmentVariable ( "MAYA_LOCATION" ) ;
268
267
List < string > locationsList = new List < string > ( ) ;
269
268
270
269
if ( environmentVariable != null )
@@ -281,7 +280,7 @@ public static string[] DCCVendorLocations {
281
280
{
282
281
return locationsList . ToArray ( ) ;
283
282
}
284
- }
283
+ }
285
284
286
285
switch ( Application . platform )
287
286
{
@@ -714,7 +713,14 @@ static string AskMayaVersion(string exePath) {
714
713
// We want the stuff after 'Maya ' and before the comma.
715
714
// (Uni-31601) less brittle! Consider also the mel command "about -version".
716
715
var commaIndex = resultString . IndexOf ( ',' ) ;
717
- return resultString . Substring ( 0 , commaIndex ) . Substring ( "Maya " . Length ) ;
716
+ if ( ! string . IsNullOrEmpty ( resultString . Trim ( ) ) )
717
+ {
718
+ return resultString . Substring ( 0 , commaIndex ) . Substring ( "Maya " . Length ) ;
719
+ }
720
+ else
721
+ {
722
+ return "unknown" ;
723
+ }
718
724
}
719
725
720
726
/// <summary>
You can’t perform that action at this time.
0 commit comments