diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-02-13 16:55:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-02-13 16:55:22 +0300 |
commit | bc9848f7e67c3e695403179f8bcdb78b0e5764a3 (patch) | |
tree | 18561a90fa2660b5227a0c73c1d519d8a58cfab3 /source/blender/src/fluidsim.c | |
parent | e26b5aa9c47fbc604c23efe9100940ff68d8ddbe (diff) |
Added a global string to be used for the tempdir. since the user preference is not loaded in background mode and the user preference is not validated and has no fallback.
'btempdir' is set with BLI_where_is_temp() - This tries to use U.tempdir but falls back to $TEMP or /tmp/
Diffstat (limited to 'source/blender/src/fluidsim.c')
-rw-r--r-- | source/blender/src/fluidsim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/fluidsim.c b/source/blender/src/fluidsim.c index e9609d40570..a6620cef927 100644 --- a/source/blender/src/fluidsim.c +++ b/source/blender/src/fluidsim.c @@ -70,7 +70,6 @@ #include "BKE_scene.h" #include "BKE_object.h" #include "BKE_softbody.h" -#include "BKE_utildefines.h" #include "BKE_DerivedMesh.h" #include "BKE_ipo.h" #include "LBM_fluidsim.h" @@ -151,6 +150,7 @@ typedef struct { /* ********************** fluid sim settings struct functions ********************** */ /* allocates and initializes general main data */ + FluidsimSettings *fluidsimSettingsNew(struct Object *srcob) { //char blendDir[FILE_MAXDIR], blendFile[FILE_MAXFILE]; @@ -189,7 +189,7 @@ FluidsimSettings *fluidsimSettingsNew(struct Object *srcob) /* elubie: changed this to default to the same dir as the render output to prevent saving to C:\ on Windows */ - BLI_strncpy(fss->surfdataPath, U.tempdir, FILE_MAX); + BLI_strncpy(fss->surfdataPath, btempdir, FILE_MAX); fss->orgMesh = (Mesh *)srcob->data; fss->meshSurface = NULL; fss->meshBB = NULL; |