Skip to content

Commit 6a54c8a

Browse files
author
MSI\Austin
committed
[CHANGED] The editor settings are no longer checking for the newest version constantly, but check once, when the list of programs is first filled, and a second time, if we lose the information for which program should be selected.
1 parent d1af9a6 commit 6a54c8a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,9 @@ public override void OnInspectorGUI() {
9898
var options = ExportSettings.GetDCCOptions();
9999
// make sure we never initially have browse selected
100100
if (exportSettings.selectedDCCApp == options.Length - 1) {
101-
exportSettings.selectedDCCApp = 0;
101+
exportSettings.selectedDCCApp = exportSettings.FindMostRecentProgram();
102102
}
103103

104-
exportSettings.selectedDCCApp = exportSettings.FindMostRecentProgram();
105-
106104
int oldValue = exportSettings.selectedDCCApp;
107105
exportSettings.selectedDCCApp = EditorGUILayout.Popup(exportSettings.selectedDCCApp, options);
108106
if (exportSettings.selectedDCCApp == options.Length - 1) {
@@ -452,6 +450,7 @@ private static void FindDCCInstalls() {
452450
dccOptionName.Add (GetUniqueName ("3ds Max " + version));
453451
}
454452
}
453+
instance.selectedDCCApp = instance.FindMostRecentProgram();
455454
}
456455

457456
/// <summary>

0 commit comments

Comments
 (0)