Skip to content

Commit e3abeaa

Browse files
committed
don't let user select Maya LT
1 parent 0965581 commit e3abeaa

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
@@ -122,6 +122,13 @@ public override void OnInspectorGUI() {
122122

123123
// check that the path is valid and references the maya executable
124124
if (!string.IsNullOrEmpty (mayaPath)) {
125+
var md = Directory.GetParent (mayaPath);
126+
if (md.Parent.Name.ToLower ().StartsWith ("mayalt")) {
127+
Debug.LogError (string.Format("Unity Integration does not support Maya LT: \"{0}\"", md.FullName));
128+
exportSettings.selectedMayaApp = oldValue;
129+
return;
130+
}
131+
125132
if (!Path.GetFileNameWithoutExtension (mayaPath).ToLower ().Equals ("maya")) {
126133
// clicked on the wrong application, try to see if we can still find
127134
// maya in this directory.

0 commit comments

Comments
 (0)