File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,12 @@ public override void OnInspectorGUI() {
118
118
119
119
// check that the path is valid and references the maya executable
120
120
if ( ! string . IsNullOrEmpty ( mayaPath ) ) {
121
+ // get the directory of the executable
121
122
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)
122
127
if ( md . Name . ToLower ( ) . StartsWith ( "mayalt" ) || md . Parent . Name . ToLower ( ) . StartsWith ( "mayalt" ) ) {
123
128
Debug . LogError ( string . Format ( "Unity Integration does not support Maya LT: \" {0}\" " , md . FullName ) ) ;
124
129
exportSettings . selectedMayaApp = oldValue ;
You can’t perform that action at this time.
0 commit comments