diff options
author | Andrea Weikert <elubie@gmx.net> | 2007-02-28 23:11:10 +0300 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2007-02-28 23:11:10 +0300 |
commit | e53c5058b4cb386c6b3f63cec52750c2f6a1021b (patch) | |
tree | bdf7ec7990082c07b138c92bc2e8125a772c5c56 /source/blender/src/fluidsim.c | |
parent | b58d1f9ba05c56310a1067b25d502b84c7cd0021 (diff) |
=== bugfix ===
filename and path issues:
[ #6107 ] Animation crashes when ouput folder does not exist
- using the Windows drive as default and only then degrading to the
Blender installation drive and then the first valid drive.
- in case of degrading added error message print to console to make it
transparent
[ #6106 ] fluids - no default path
- setting the default path to U.tempdir where Blender stores temporary files
Diffstat (limited to 'source/blender/src/fluidsim.c')
-rw-r--r-- | source/blender/src/fluidsim.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/fluidsim.c b/source/blender/src/fluidsim.c index f01a315640a..3eae54b3482 100644 --- a/source/blender/src/fluidsim.c +++ b/source/blender/src/fluidsim.c @@ -53,6 +53,7 @@ #include "DNA_camera_types.h" #include "DNA_screen_types.h" #include "DNA_space_types.h" +#include "DNA_userdef_types.h" #include "DNA_ipo_types.h" #include "DNA_key_types.h" @@ -186,7 +187,9 @@ FluidsimSettings *fluidsimSettingsNew(struct Object *srcob) fss->iniVely = fss->iniVelz = 0.0; - strcpy(fss->surfdataPath,""); // leave blank, init upon first bake + /* 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); fss->orgMesh = (Mesh *)srcob->data; fss->meshSurface = NULL; fss->meshBB = NULL; |