[Bf-blender-cvs] [2bc34188842] master: Fix T63000: Don't use original file name for autosave
Jacques Lucke
noreply at git.blender.org
Thu Apr 4 14:38:34 CEST 2019
Commit: 2bc3418884281908f14f1bd243cab1497f4301b6
Author: Jacques Lucke
Date: Thu Apr 4 14:38:18 2019 +0200
Branches: master
https://developer.blender.org/rB2bc3418884281908f14f1bd243cab1497f4301b6
Fix T63000: Don't use original file name for autosave
Reviewers: brecht
Differential Revision: https://developer.blender.org/D4609
===================================================================
M source/blender/windowmanager/intern/wm_files.c
===================================================================
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
More information about the Bf-blender-cvs
mailing list