Skip to content

Commit da9a28b

Browse files
author
AJubrey
committed
[CHANGED] we needed to replace numbers in the preferenceList string as well
1 parent 48afdf4 commit da9a28b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ private int ChoosePreferredDCCApp(int optionA, int optionB)
453453
for( int i = 0; i < s_PreferenceList.Count; i++ )
454454
{
455455
//The constant without any spaces
456-
string currentApp = s_PreferenceList[i].Replace(" ", "");
456+
string currentApp = System.Text.RegularExpressions.Regex.Replace(s_PreferenceList[i], @"[\s^0-9]", "");
457457
//The potential app, without any numbers or spaces
458458
string comparingApp = System.Text.RegularExpressions.Regex.Replace(appA, @"[\s^0-9]", "");
459459

@@ -468,7 +468,7 @@ private int ChoosePreferredDCCApp(int optionA, int optionB)
468468
for (int i = 0; i < s_PreferenceList.Count; i++)
469469
{
470470
//The constant without any spaces
471-
string currentApp = s_PreferenceList[i].Replace(" ", "");
471+
string currentApp = System.Text.RegularExpressions.Regex.Replace(s_PreferenceList[i], @"[\s^0-9]", "");
472472
//The potential app, without any numbers or spaces
473473
string comparingApp = System.Text.RegularExpressions.Regex.Replace(appB, @"[\s^0-9]", "");
474474

0 commit comments

Comments
 (0)