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:
-rw-r--r--source/blender/src/usiblender.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/src/usiblender.c b/source/blender/src/usiblender.c
index 935bb2e65fa..57120f66b95 100644
--- a/source/blender/src/usiblender.c
+++ b/source/blender/src/usiblender.c
@@ -416,7 +416,21 @@ void BIF_write_homefile(void)
char *err, tstr[FILE_MAXDIR+FILE_MAXFILE];
int write_flags;
+ /* "change-over" period for Windows - Ctrl+U now saves in ~/.blender,
+ but blender still checks the old locations.
+ To be removed at v2.4 or so! ;)
+ */
+
+#ifdef WIN32
+ char dir[FILE_MAXDIR+FILE_MAXFILE];
+ BLI_getInstallationDir(dir);
+
+ strcat(dir,"/.blender/");
+
+ BLI_make_file_string("/", tstr, dir, ".B.blend");
+#else
BLI_make_file_string("/", tstr, BLI_gethome(), ".B.blend");
+#endif
/* force save as regular blend file */
write_flags = G.fileflags & ~(G_FILE_COMPRESS | G_FILE_LOCK | G_FILE_SIGN);