[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30403] trunk/blender/source/blender/ windowmanager/intern/wm_files.c: Add comment about case where autosave can fail on Windows.
Nathan Letwory
nathan at letworyinteractive.com
Fri Jul 16 08:49:32 CEST 2010
Revision: 30403
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30403
Author: jesterking
Date: 2010-07-16 08:49:31 +0200 (Fri, 16 Jul 2010)
Log Message:
-----------
Add comment about case where autosave can fail on Windows.
Modified Paths:
--------------
trunk/blender/source/blender/windowmanager/intern/wm_files.c
Modified: trunk/blender/source/blender/windowmanager/intern/wm_files.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_files.c 2010-07-16 01:00:56 UTC (rev 30402)
+++ trunk/blender/source/blender/windowmanager/intern/wm_files.c 2010-07-16 06:49:31 UTC (rev 30403)
@@ -689,6 +689,14 @@
sprintf(pidstr, "%d.blend", abs(getpid()));
#ifdef WIN32
+ // XXX Need to investigate how to handle default location of '/tmp/'
+ // This is a relative directory on Windows, and it may be
+ // found. Example:
+ // Blender installed on D:\ drive, D:\ drive has D:\tmp\
+ // Now, BLI_exists() will find '/tmp/' exists, but
+ // BLI_make_file_string will create string that has it most likely on C:\
+ // through get_default_root().
+ // If there is no C:\tmp autosave fails.
if (!BLI_exists(U.tempdir)) {
savedir = BLI_get_folder_create(BLENDER_USER_AUTOSAVE, NULL);
BLI_make_file_string("/", filename, savedir, pidstr);
More information about the Bf-blender-cvs
mailing list