Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-03-15 05:30:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-03-15 06:48:17 +0300
commitd3b4ff6eaa1cb155adf4b2aad4775746bc3ca6df (patch)
tree61318f6b875426fd284c966212f4ca0f79ce530b /source/blender/windowmanager
parent042f06ef3cd8d2c39593258c5bc4198d647f573b (diff)
Cleanup: rename G_FILE_RECOVER -> G_FILE_RECOVER_READ
No functional changes, make room for a write equivalent.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 227520ed3f9..40b32665f4b 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -2595,9 +2595,9 @@ bool WM_recover_last_session(bContext *C, ReportList *reports)
{
char filepath[FILE_MAX];
BLI_join_dirfile(filepath, sizeof(filepath), BKE_tempdir_base(), BLENDER_QUIT_FILE);
- G.fileflags |= G_FILE_RECOVER;
+ G.fileflags |= G_FILE_RECOVER_READ;
const bool success = wm_file_read_opwrap(C, filepath, reports);
- G.fileflags &= ~G_FILE_RECOVER;
+ G.fileflags &= ~G_FILE_RECOVER_READ;
return success;
}
@@ -2654,11 +2654,11 @@ static int wm_recover_auto_save_exec(bContext *C, wmOperator *op)
wm_open_init_use_scripts(op, true);
SET_FLAG_FROM_TEST(G.f, RNA_boolean_get(op->ptr, "use_scripts"), G_FLAG_SCRIPT_AUTOEXEC);
- G.fileflags |= G_FILE_RECOVER;
+ G.fileflags |= G_FILE_RECOVER_READ;
success = wm_file_read_opwrap(C, filepath, op->reports);
- G.fileflags &= ~G_FILE_RECOVER;
+ G.fileflags &= ~G_FILE_RECOVER_READ;
if (success) {
if (!G.background) {