Skip to content

Commit c90a6d9

Browse files
author
AJubrey
committed
[CHANGED] the vendor location back to how it was
[ADDED] back the code for maya location in the find installs function (needs to be tested)
1 parent f41ce4e commit c90a6d9

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -277,20 +277,11 @@ public static string[] DCCVendorLocations {
277277
locationsList.Add(locations[i]);
278278
}
279279
}
280-
}
281-
282-
if (mayaLocation != null)
283-
{
284-
if (Directory.Exists(mayaLocation))
280+
if (locationsList.Count > 0)
285281
{
286-
locationsList.Add(mayaLocation);
282+
return locationsList.ToArray();
287283
}
288-
}
289-
290-
if (locationsList.Count > 0)
291-
{
292-
return locationsList.ToArray();
293-
}
284+
}
294285

295286
switch (Application.platform)
296287
{
@@ -552,6 +543,13 @@ private static void FindDCCInstalls() {
552543
}
553544
}
554545
}
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+
}
555553
instance.selectedDCCApp = instance.GetPreferredDCCApp();
556554
}
557555

0 commit comments

Comments
 (0)