File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -289,16 +289,19 @@ public static string[] DCCVendorLocations {
289
289
290
290
//If we found 'Maya.app' in the location string, we're going to trim it and everything after it out.
291
291
//This way our possibleLocation will be more uniform between windows and mac.
292
+
293
+ //make sure we found "maya.app."
294
+ if ( appIndex >= 0 )
295
+ {
296
+ //get everything up until 'maya.app'
297
+ string subLocation = location . Substring ( 0 , ( appIndex - 1 ) ) ;
292
298
293
- //get everything up until 'maya.exe'
294
- string subLocation = location . Substring ( 0 , ( appIndex - 1 ) ) ;
295
-
296
- var parentDirectory = Directory . GetParent ( subLocation ) ;
299
+ var parentDirectory = Directory . GetParent ( subLocation ) ;
297
300
298
- if ( appIndex >= 0 && parentDirectory != null )
299
- {
300
- possibleLocation = parentDirectory . ToString ( ) ;
301
- Debug . Log ( possibleLocation . ToString ( ) ) ;
301
+ if ( parentDirectory != null )
302
+ {
303
+ possibleLocation = parentDirectory . ToString ( ) ;
304
+ }
302
305
}
303
306
}
304
307
You can’t perform that action at this time.
0 commit comments