We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89d7e61 commit ba107f9Copy full SHA for ba107f9
Assets/FbxExporters/Editor/FbxExportSettings.cs
@@ -599,9 +599,9 @@ public static GUIContent[] GetDCCOptions(){
599
instance.dccOptionNames = new List<string> ();
600
FindDCCInstalls ();
601
}
602
-
603
- // store the selected app
604
- var prevSelection = instance.dccOptionPaths[instance.selectedDCCApp];
+ // store the selected app if any
+ string prevSelection = instance.dccOptionPaths.Count > 0 && instance.selectedDCCApp >=0 ?
+ instance.dccOptionPaths[instance.selectedDCCApp] : null;
605
606
// remove options that no longer exist
607
List<string> pathsToDelete = new List<string>();
0 commit comments