Skip to content

Commit 24a714d

Browse files
authored
Merge pull request #162 from Unity-Technologies/UNI-26820-no-mayalt
UNI-26820 don't let user select Maya LT
2 parents 8c662f3 + e3abeaa commit 24a714d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@ public override void OnInspectorGUI() {
129129

130130
// check that the path is valid and references the maya executable
131131
if (!string.IsNullOrEmpty (mayaPath)) {
132+
var md = Directory.GetParent (mayaPath);
133+
if (md.Parent.Name.ToLower ().StartsWith ("mayalt")) {
134+
Debug.LogError (string.Format("Unity Integration does not support Maya LT: \"{0}\"", md.FullName));
135+
exportSettings.selectedMayaApp = oldValue;
136+
return;
137+
}
138+
132139
if (!Path.GetFileNameWithoutExtension (mayaPath).ToLower ().Equals ("maya")) {
133140
// clicked on the wrong application, try to see if we can still find
134141
// maya in this directory.

0 commit comments

Comments
 (0)