File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ public override void OnInspectorGUI() {
119
119
// check that the path is valid and references the maya executable
120
120
if ( ! string . IsNullOrEmpty ( mayaPath ) ) {
121
121
var md = Directory . GetParent ( mayaPath ) ;
122
- if ( md . Parent . Name . ToLower ( ) . StartsWith ( "mayalt" ) ) {
122
+ if ( md . Name . ToLower ( ) . StartsWith ( "mayalt" ) || md . Parent . Name . ToLower ( ) . StartsWith ( "mayalt" ) ) {
123
123
Debug . LogError ( string . Format ( "Unity Integration does not support Maya LT: \" {0}\" " , md . FullName ) ) ;
124
124
exportSettings . selectedMayaApp = oldValue ;
125
125
return ;
@@ -396,6 +396,12 @@ public static void AddMayaOption(string newOption){
396
396
}
397
397
// get the version
398
398
var version = AskMayaVersion ( newOption ) ;
399
+
400
+ // make sure this is not Maya LT
401
+ if ( version . ToLower ( ) . StartsWith ( "lt" ) ) {
402
+ Debug . LogError ( string . Format ( "Unity Integration does not support Maya LT: \" {0}\" " , newOption ) ) ;
403
+ return ;
404
+ }
399
405
instance . mayaOptionNames . Add ( GetUniqueName ( "Maya " + version ) ) ;
400
406
mayaOptionPaths . Add ( newOption ) ;
401
407
instance . selectedMayaApp = mayaOptionPaths . Count - 1 ;
You can’t perform that action at this time.
0 commit comments