File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
source/VersionHandlerImpl/src Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -406,6 +406,15 @@ private static void Save() {
406
406
return ;
407
407
}
408
408
Directory . CreateDirectory ( Path . GetDirectoryName ( PROJECT_SETTINGS_FILE ) ) ;
409
+ if ( UnityEditor . VersionControl . Provider . enabled && UnityEditor . VersionControl . Provider . isActive &&
410
+ ( ! UnityEditor . VersionControl . Provider . requiresNetwork ||
411
+ UnityEditor . VersionControl . Provider . onlineState == UnityEditor . VersionControl . OnlineState . Online ) ) {
412
+ var task = UnityEditor . VersionControl . Provider . Checkout ( PROJECT_SETTINGS_FILE ,
413
+ UnityEditor . VersionControl . CheckoutMode . Exact ) ;
414
+ task . Wait ( ) ;
415
+ if ( ! task . success )
416
+ return ;
417
+ }
409
418
using ( var writer = new XmlTextWriter ( new StreamWriter ( PROJECT_SETTINGS_FILE ) ) {
410
419
Formatting = Formatting . Indented ,
411
420
} ) {
You can’t perform that action at this time.
0 commit comments