Skip to content

Commit a264d50

Browse files
committed
add comment explaining why parent of exe folder is checked
1 parent 9c8d250 commit a264d50

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,12 @@ public override void OnInspectorGUI() {
118118

119119
// check that the path is valid and references the maya executable
120120
if (!string.IsNullOrEmpty (mayaPath)) {
121+
// get the directory of the executable
121122
var md = Directory.GetParent (mayaPath);
123+
// Check that the executable is not in a MayaLT directory (thus being MayaLT instead of Maya executable).
124+
// On Mac path resembles: /Applications/Autodesk/mayaLT2018/Maya.app
125+
// On Windows path resembles: C:\Program Files\Autodesk\MayaLT2018\bin\maya.exe
126+
// Therefore check both executable folder (for Mac) and its parent (for Windows)
122127
if (md.Name.ToLower().StartsWith("mayalt") || md.Parent.Name.ToLower ().StartsWith ("mayalt")) {
123128
Debug.LogError (string.Format("Unity Integration does not support Maya LT: \"{0}\"", md.FullName));
124129
exportSettings.selectedMayaApp = oldValue;

0 commit comments

Comments
 (0)