@@ -120,26 +120,11 @@ public override void OnInspectorGUI() {
120
120
121
121
// check that the path is valid and references the maya executable
122
122
if ( ! string . IsNullOrEmpty ( dccPath ) ) {
123
- // get the directory of the executable
124
- var md = Directory . GetParent ( dccPath ) ;
125
- // UNI-29074 TODO: add Maya LT support
126
- // Check that the executable is not in a MayaLT directory (thus being MayaLT instead of Maya executable).
127
- // On Mac path resembles: /Applications/Autodesk/mayaLT2018/Maya.app
128
- // On Windows path resembles: C:\Program Files\Autodesk\MayaLT2018\bin\maya.exe
129
- // Therefore check both executable folder (for Mac) and its parent (for Windows)
130
- if ( md . Name . ToLower ( ) . StartsWith ( "mayalt" ) || md . Parent . Name . ToLower ( ) . StartsWith ( "mayalt" ) ) {
131
- Debug . LogError ( string . Format ( "Unity Integration does not support Maya LT: \" {0}\" " , md . FullName ) ) ;
132
- exportSettings . selectedDCCApp = oldValue ;
133
- return ;
134
- }
135
-
136
123
ExportSettings . DCCType foundDCC = ExportSettings . DCCType . Maya ;
137
124
var foundDCCPath = TryFindDCC ( dccPath , ext , ExportSettings . DCCType . Maya ) ;
138
125
if ( foundDCCPath == null && Application . platform == RuntimePlatform . WindowsEditor ) {
139
-
140
126
foundDCCPath = TryFindDCC ( dccPath , ext , ExportSettings . DCCType . Max ) ;
141
127
foundDCC = ExportSettings . DCCType . Max ;
142
-
143
128
}
144
129
if ( foundDCCPath == null ) {
145
130
Debug . LogError ( string . Format ( "Could not find supported 3D application at: \" {0}\" " , Path . GetDirectoryName ( dccPath ) ) ) ;
@@ -464,11 +449,6 @@ private static void FindDCCInstalls() {
464
449
465
450
// Only accept those that start with 'maya' in either case.
466
451
if ( product . StartsWith ( "maya" , StringComparison . InvariantCultureIgnoreCase ) ) {
467
- // UNI-29074 TODO: add Maya LT support
468
- // Reject MayaLT -- it doesn't have plugins.
469
- if ( product . StartsWith ( "mayalt" , StringComparison . InvariantCultureIgnoreCase ) ) {
470
- continue ;
471
- }
472
452
string version = product . Substring ( "maya" . Length ) ;
473
453
dccOptionPath . Add ( GetMayaExePath ( productDir . FullName . Replace ( "\\ " , "/" ) ) ) ;
474
454
dccOptionName . Add ( GetUniqueDCCOptionName ( kMayaOptionName + version ) ) ;
@@ -585,13 +565,6 @@ public static void AddDCCOption(string newOption, DCCType dcc){
585
565
switch ( dcc ) {
586
566
case DCCType . Maya :
587
567
var version = AskMayaVersion ( newOption ) ;
588
-
589
- // UNI-29074 TODO: add Maya LT support
590
- // make sure this is not Maya LT
591
- if ( version . ToLower ( ) . StartsWith ( "lt" ) ) {
592
- Debug . LogError ( string . Format ( "Unity Integration does not support Maya LT: \" {0}\" " , newOption ) ) ;
593
- return ;
594
- }
595
568
optionName = GetUniqueDCCOptionName ( "Maya " + version ) ;
596
569
break ;
597
570
case DCCType . Max :
@@ -657,6 +630,11 @@ public static string GetSelectedDCCPath()
657
630
return ( instance . dccOptionPaths . Count > 0 ) ? instance . dccOptionPaths [ instance . selectedDCCApp ] : "" ;
658
631
}
659
632
633
+ public static string GetSelectedDCCName ( )
634
+ {
635
+ return ( instance . dccOptionPaths . Count > 0 ) ? instance . dccOptionNames [ instance . selectedDCCApp ] : "" ;
636
+ }
637
+
660
638
/// <summary>
661
639
/// The path where Convert To Model will save the new fbx and prefab.
662
640
/// This is relative to the Application.dataPath ; it uses '/' as the
0 commit comments