@@ -154,7 +154,7 @@ private static void WriteFile(string FileName, List<string> Lines )
154
154
}
155
155
}
156
156
157
- public static bool InstallMaya ( string version , bool verbose = true , bool commandsOnly = false )
157
+ public static bool InstallMaya ( string version , bool verbose = true )
158
158
{
159
159
// check if package installed
160
160
string moduleTemplatePath = GetModuleTemplatePath ( version ) ;
@@ -165,10 +165,6 @@ public static bool InstallMaya(string version, bool verbose=true, bool commandsO
165
165
return false ;
166
166
}
167
167
168
- // TODO: detect maya2017 installation
169
-
170
- // TODO: if not maya2017 installed warn user
171
-
172
168
// check for {USER} modules folder
173
169
string modulePath = GetModulePath ( version ) ;
174
170
@@ -248,43 +244,22 @@ public static bool InstallMaya(string version, bool verbose=true, bool commandsO
248
244
// TODO: print message package already installed else where
249
245
}
250
246
251
- if ( commandsOnly )
252
- throw new NotImplementedException ( ) ;
253
-
254
- // TODO: configure maya to auto-load plugin on next startup
255
-
256
247
return true ;
257
248
}
258
249
259
250
public static void InstallMaya2017 ( )
260
251
{
261
252
const bool verbose = true ;
262
- const bool commandsOnly = false ;
263
253
const string version = Integrations . MAYA_VERSION ;
264
254
265
255
Debug . Log ( string . Format ( "Installing Maya {0} Integration" , version ) ) ;
266
256
267
- if ( InstallMaya ( version , verbose , commandsOnly ) ) {
257
+ if ( InstallMaya ( version , verbose ) ) {
268
258
if ( verbose ) Debug . Log ( string . Format ( "Completed installation of Maya {0} Integration." , version ) ) ;
269
259
} else {
270
260
if ( verbose ) Debug . Log ( string . Format ( "Failed to install Maya {0} Integration." , version ) ) ;
271
261
}
272
262
}
273
-
274
- public static void InstallMaya2017CommandsOnly ( )
275
- {
276
- const bool verbose = true ;
277
- const bool commandsOnly = true ;
278
- const string version = Integrations . MAYA_VERSION ;
279
-
280
- Debug . Log ( string . Format ( "Installing Maya {0} Integration (Commands Only)." , version ) ) ;
281
-
282
- if ( InstallMaya ( version , verbose , commandsOnly ) ) {
283
- if ( verbose ) Debug . Log ( string . Format ( "Completed installation of Maya {0} Integration (Commands Only)." , version ) ) ;
284
- } else {
285
- if ( verbose ) Debug . Log ( string . Format ( "Failed to install Maya {0} Integration (Commands Only)." , version ) ) ;
286
- }
287
- }
288
263
}
289
264
290
265
namespace Editors
@@ -296,7 +271,7 @@ class IntegrationsUI
296
271
[ MenuItem ( MenuItemName , false , 0 ) ]
297
272
public static void OnMenuItem ( )
298
273
{
299
- if ( Integrations . InstallMaya ( Integrations . MAYA_VERSION , true , false ) )
274
+ if ( Integrations . InstallMaya ( Integrations . MAYA_VERSION ) )
300
275
{
301
276
string title = string . Format ( "Completed installation of Maya {0} Integration." , Integrations . MAYA_VERSION ) ;
302
277
string commands = string . Format ( "optionVar -stringValue \" UnityProject\" \" {0}\" ; loadPlugin unityOneClickPlugin; pluginInfo -edit -autoload true unityOneClickPlugin;" , Integrations . GetProjectPath ( ) ) ;
0 commit comments