Skip to content

Commit f4aab9b

Browse files
committed
platform specific extension
1 parent 163b7e2 commit f4aab9b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,11 @@ public override void OnInspectorGUI() {
116116
int oldValue = exportSettings.selectedMayaApp;
117117
exportSettings.selectedMayaApp = EditorGUILayout.Popup(exportSettings.selectedMayaApp, options);
118118
if (exportSettings.selectedMayaApp == options.Length - 1) {
119-
string mayaPath = EditorUtility.OpenFilePanel ("Select Maya Application", ExportSettings.kDefaultAdskRoot, "exe");
119+
var ext = "exe";
120+
#if UNITY_EDITOR_OSX
121+
ext = "app";
122+
#endif
123+
string mayaPath = EditorUtility.OpenFilePanel ("Select Maya Application", ExportSettings.kDefaultAdskRoot, ext);
120124

121125
// check that the path is valid and references the maya executable
122126
if (!string.IsNullOrEmpty (mayaPath) &&

0 commit comments

Comments
 (0)