File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -609,23 +609,22 @@ public static void InstallDCCIntegration ()
609
609
throw new System . NotImplementedException ( ) ;
610
610
}
611
611
612
- GetIntegrationFolder ( dccIntegration ) ;
612
+ if ( ! GetIntegrationFolder ( dccIntegration ) ) {
613
+ // failed to get integration folder
614
+ return ;
615
+ }
613
616
int exitCode = dccIntegration . InstallIntegration ( dccExe ) ;
614
617
ShowSuccessDialog ( dccIntegration . DccDisplayName , exitCode ) ;
615
618
}
616
619
617
- private static void GetIntegrationFolder ( DCCIntegration dcc ) {
620
+ private static bool GetIntegrationFolder ( DCCIntegration dcc ) {
618
621
// decompress zip file if it exists, otherwise try using default location
619
622
var zipPath = dcc . GetIntegrationZipFullPath ( ) ;
620
623
if ( System . IO . File . Exists ( zipPath ) ) {
621
- var result = DecompressIntegrationZipFile ( zipPath , dcc ) ;
622
- if ( ! result ) {
623
- // could not find integration
624
- return ;
625
- }
626
- } else {
627
- dcc . SetIntegrationFolderPath ( DefaultIntegrationSavePath ) ;
624
+ return DecompressIntegrationZipFile ( zipPath , dcc ) ;
628
625
}
626
+ dcc . SetIntegrationFolderPath ( DefaultIntegrationSavePath ) ;
627
+ return true ;
629
628
}
630
629
631
630
private static bool DecompressIntegrationZipFile ( string zipPath , DCCIntegration dcc )
You can’t perform that action at this time.
0 commit comments