Skip to content

Commit 89e64ff

Browse files
committed
fix so adding a new maya version works on Mac
1 parent f4aab9b commit 89e64ff

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
@@ -342,12 +342,16 @@ public static GUIContent[] GetMayaOptions(){
342342
}
343343

344344
public static void AddMayaOption(string newOption){
345+
// on OSX we get a path ending in .app, which is not quite the exe
346+
#if UNITY_EDITOR_OSX
347+
newOption = GetMayaExePath(newOption);
348+
#endif
349+
345350
var mayaOptionPaths = instance.mayaOptionPaths;
346351
if (mayaOptionPaths.Contains(newOption)) {
347352
instance.selectedMayaApp = mayaOptionPaths.IndexOf (newOption);
348353
return;
349354
}
350-
351355
// get the version
352356
var version = AskMayaVersion(newOption);
353357
instance.mayaOptionNames.Add (GetUniqueName("Maya "+version));

0 commit comments

Comments
 (0)