Skip to content

Commit 221a4dc

Browse files
author
AJubrey
committed
[CHANGED] for loop to foreach loop
1 parent f86b4b0 commit 221a4dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,11 @@ private static HashSet<string> GetCustomVendorLocations()
315315
if (!string.IsNullOrEmpty(environmentVariable))
316316
{
317317
string[] locations = environmentVariable.Split(';');
318-
for (int i = 0; i < locations.Length; i++)
318+
foreach (var location in locations)
319319
{
320-
if (Directory.Exists(locations[i]))
320+
if (Directory.Exists(location))
321321
{
322-
result.Add(locations[i]);
322+
result.Add(location);
323323
}
324324
}
325325
}

0 commit comments

Comments
 (0)