Skip to content

Commit 291e5a9

Browse files
committed
look for Maya directories on OSX
1 parent 4951de1 commit 291e5a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,11 @@ public override void OnInspectorGUI() {
128128
// clicked on the wrong application, try to see if we can still find
129129
// maya in this directory.
130130
var mayaDir = new DirectoryInfo(Path.GetDirectoryName(mayaPath));
131+
#if UNITY_EDITOR_OSX
132+
var files = mayaDir.GetDirectories("*." + ext);
133+
#else
131134
var files = mayaDir.GetFiles ("*." + ext);
135+
#endif
132136
bool foundMaya = false;
133137
foreach (var file in files) {
134138
var filename = Path.GetFileNameWithoutExtension (file.Name).ToLower ();

0 commit comments

Comments
 (0)