Skip to content

Commit b591921

Browse files
committed
add dummy option if no Maya or Max install found
otherwise it will just keep opening the browse dialog
1 parent 3600bfa commit b591921

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,13 @@ public static GUIContent[] GetDCCOptions(){
408408
instance.dccOptionPaths.RemoveAt (index);
409409
}
410410

411+
if (instance.dccOptionPaths.Count <= 0) {
412+
return new GUIContent[]{
413+
new GUIContent("<no DCC found>"),
414+
new GUIContent("Browse...")
415+
};
416+
}
417+
411418
GUIContent[] optionArray = new GUIContent[instance.dccOptionPaths.Count+1];
412419
for(int i = 0; i < instance.dccOptionPaths.Count; i++){
413420
optionArray [i] = new GUIContent(

0 commit comments

Comments
 (0)