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:
authorNathan Letwory <nathan@letworyinteractive.com>2010-09-28 03:28:45 +0400
committerNathan Letwory <nathan@letworyinteractive.com>2010-09-28 03:28:45 +0400
commit76b1a27f96ffe1ec8c5351f34bcc2b9733b4483e (patch)
tree32e65f70549fe807d1576ad1d91da33305574b02 /source/blender/blenlib/intern
parent7c133760bb0808b57c6921d22a374e89e17a8e0b (diff)
Use content of %TEMP% also in U.temp_dir instead of /tmp/ on Windows. Internal btempdir uses that anyway, so less confusing.
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r--source/blender/blenlib/intern/path_util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c
index 384f3aa541f..ac4af561779 100644
--- a/source/blender/blenlib/intern/path_util.c
+++ b/source/blender/blenlib/intern/path_util.c
@@ -1632,6 +1632,7 @@ void BLI_where_is_temp(char *fullname, int usertemp)
char *tmp = getenv("TEMP"); /* Windows */
if (tmp && BLI_is_dir(tmp)) {
strcpy(fullname, tmp);
+ strcpy(U.tempdir, fullname); /* also set user pref to show %TEMP%. /tmp/ is just plain confusing for Windows users. */
}
}
#else