[Bf-blender-cvs] [9b4172c] master: Fix T43266, when we have a blendfile name use only that without the pid for autosave. Will save Windows users from polluting their tmp folders too much.

Antony Riakiotakis noreply at git.blender.org
Mon Mar 30 19:21:45 CEST 2015


Commit: 9b4172cc6c0ab8f3c5476a37273197474ff33de0
Author: Antony Riakiotakis
Date:   Mon Mar 30 19:21:38 2015 +0200
Branches: master
https://developer.blender.org/rB9b4172cc6c0ab8f3c5476a37273197474ff33de0

Fix T43266, when we have a blendfile name use only that without the pid
for autosave. Will save Windows users from polluting their tmp folders
too much.

===================================================================

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 697a798..3fd1fe4 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -1086,7 +1086,7 @@ void wm_autosave_location(char *filepath)
 	if (G.main && G.relbase_valid) {
 		const char *basename = BLI_path_basename(G.main->name);
 		int len = strlen(basename) - 6;
-		BLI_snprintf(path, sizeof(path), "%.*s-%d.blend", len, basename, pid);
+		BLI_snprintf(path, sizeof(path), "%.*s.blend", len, basename);
 	}
 	else {
 		BLI_snprintf(path, sizeof(path), "%d.blend", pid);




More information about the Bf-blender-cvs mailing list