[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32163] trunk/blender/source/blender/ blenlib/intern/path_util.c: Move copying of %TEMP% to U. tempdir after slash adding.

Nathan Letwory nathan at letworyinteractive.com
Tue Sep 28 02:14:02 CEST 2010


Revision: 32163
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32163
Author:   jesterking
Date:     2010-09-28 02:14:02 +0200 (Tue, 28 Sep 2010)

Log Message:
-----------
Move copying of %TEMP% to U.tempdir after slash adding. Otherwise path is handled wrong when opening filebrowser for it.

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/intern/path_util.c

Modified: trunk/blender/source/blender/blenlib/intern/path_util.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/path_util.c	2010-09-27 23:33:10 UTC (rev 32162)
+++ trunk/blender/source/blender/blenlib/intern/path_util.c	2010-09-28 00:14:02 UTC (rev 32163)
@@ -1632,7 +1632,6 @@
 		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
@@ -1657,6 +1656,9 @@
 	} else {
 		/* add a trailing slash if needed */
 		BLI_add_slash(fullname);
+#ifdef WIN32
+		strcpy(U.tempdir, fullname); /* also set user pref to show %TEMP%. /tmp/ is just plain confusing for Windows users. */
+#endif
 	}
 }
 





More information about the Bf-blender-cvs mailing list