File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -264,23 +264,34 @@ 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
+ List < string > locationsList = new List < string > ( ) ;
269
+
267
270
if ( environmentVariable != null )
268
271
{
269
- string [ ] locations = environmentVariable . Split ( ';' ) ;
270
- List < string > locationsList = new List < string > ( ) ;
272
+ string [ ] locations = environmentVariable . Split ( ';' ) ;
271
273
for ( int i = 0 ; i < locations . Length ; i ++ )
272
274
{
273
275
if ( Directory . Exists ( locations [ i ] ) )
274
276
{
275
277
locationsList . Add ( locations [ i ] ) ;
276
278
}
277
279
}
278
- if ( locationsList . Count > 0 )
280
+ }
281
+
282
+ if ( mayaLocation != null )
283
+ {
284
+ if ( Directory . Exists ( mayaLocation ) )
279
285
{
280
- return locationsList . ToArray ( ) ;
286
+ locationsList . Add ( mayaLocation ) ;
281
287
}
282
288
}
283
289
290
+ if ( locationsList . Count > 0 )
291
+ {
292
+ return locationsList . ToArray ( ) ;
293
+ }
294
+
284
295
switch ( Application . platform )
285
296
{
286
297
case RuntimePlatform . WindowsEditor :
You can’t perform that action at this time.
0 commit comments