File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
source/VersionHandlerImpl/src Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -406,7 +406,9 @@ 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 ) {
409
+ if ( UnityEditor . VersionControl . Provider . enabled && UnityEditor . VersionControl . Provider . isActive &&
410
+ ( ! UnityEditor . VersionControl . Provider . requiresNetwork ||
411
+ UnityEditor . VersionControl . Provider . onlineState == UnityEditor . VersionControl . OnlineState . Online ) ) {
410
412
var task = UnityEditor . VersionControl . Provider . Checkout ( PROJECT_SETTINGS_FILE ,
411
413
UnityEditor . VersionControl . CheckoutMode . Exact ) ;
412
414
task . Wait ( ) ;
You can’t perform that action at this time.
0 commit comments