Skip to content

Commit aa38a3f

Browse files
committed
make sure that its not possible to select Maya LT
1 parent 0e99523 commit aa38a3f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public override void OnInspectorGUI() {
119119
// check that the path is valid and references the maya executable
120120
if (!string.IsNullOrEmpty (mayaPath)) {
121121
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")) {
123123
Debug.LogError (string.Format("Unity Integration does not support Maya LT: \"{0}\"", md.FullName));
124124
exportSettings.selectedMayaApp = oldValue;
125125
return;
@@ -396,6 +396,12 @@ public static void AddMayaOption(string newOption){
396396
}
397397
// get the version
398398
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+
}
399405
instance.mayaOptionNames.Add (GetUniqueName("Maya "+version));
400406
mayaOptionPaths.Add (newOption);
401407
instance.selectedMayaApp = mayaOptionPaths.Count - 1;

0 commit comments

Comments
 (0)