Use content of %TEMP% also in U.temp_dir instead of /tmp/ on Windows. Internal btempd...
authorNathan Letwory <nathan@letworyinteractive.com>
Mon, 27 Sep 2010 23:28:45 +0000 (23:28 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Mon, 27 Sep 2010 23:28:45 +0000 (23:28 +0000)
source/blender/blenlib/intern/path_util.c

index 384f3aa..ac4af56 100644 (file)
@@ -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