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:
authorJacques Lucke <mail@jlucke.com>2019-04-04 15:38:18 +0300
committerJacques Lucke <mail@jlucke.com>2019-04-04 15:38:18 +0300
commit2bc3418884281908f14f1bd243cab1497f4301b6 (patch)
treea3d09b05602423022e73fc0bc49fb93758e630c4 /source/blender/windowmanager
parent1ffa7462a2114597bbea87cc0b09b48d7a09d5d5 (diff)
Fix T63000: Don't use original file name for autosave
Reviewers: brecht Differential Revision: https://developer.blender.org/D4609
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 7357a4c3b57..0b990be3eec 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -1360,10 +1360,10 @@ void wm_autosave_location(char *filepath)
if (G_MAIN && G.relbase_valid) {
const char *basename = BLI_path_basename(BKE_main_blendfile_path_from_global());
int len = strlen(basename) - 6;
- BLI_snprintf(path, sizeof(path), "%.*s.blend", len, basename);
+ BLI_snprintf(path, sizeof(path), "%.*s (autosave).blend", len, basename);
}
else {
- BLI_snprintf(path, sizeof(path), "%d.blend", pid);
+ BLI_snprintf(path, sizeof(path), "%d (autosave).blend", pid);
}
#ifdef WIN32