File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -277,20 +277,11 @@ public static string[] DCCVendorLocations {
277
277
locationsList . Add ( locations [ i ] ) ;
278
278
}
279
279
}
280
- }
281
-
282
- if ( mayaLocation != null )
283
- {
284
- if ( Directory . Exists ( mayaLocation ) )
280
+ if ( locationsList . Count > 0 )
285
281
{
286
- locationsList . Add ( mayaLocation ) ;
282
+ return locationsList . ToArray ( ) ;
287
283
}
288
- }
289
-
290
- if ( locationsList . Count > 0 )
291
- {
292
- return locationsList . ToArray ( ) ;
293
- }
284
+ }
294
285
295
286
switch ( Application . platform )
296
287
{
@@ -552,6 +543,13 @@ private static void FindDCCInstalls() {
552
543
}
553
544
}
554
545
}
546
+ var location = System . Environment . GetEnvironmentVariable ( "MAYA_LOCATION" ) ;
547
+ if ( ! string . IsNullOrEmpty ( location ) )
548
+ {
549
+ location = location . TrimEnd ( '/' ) ;
550
+ dccOptionPath . Add ( GetMayaExePath ( location . Replace ( "\\ " , "/" ) ) ) ;
551
+ dccOptionName . Add ( "MAYA_LOCATION" ) ;
552
+ }
555
553
instance . selectedDCCApp = instance . GetPreferredDCCApp ( ) ;
556
554
}
557
555
You can’t perform that action at this time.
0 commit comments