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:
authorTon Roosendaal <ton@blender.org>2005-12-13 01:04:34 +0300
committerTon Roosendaal <ton@blender.org>2005-12-13 01:04:34 +0300
commitba237f517083ae568016320b417d9b72b743e26b (patch)
tree426c9f1d323d998882e728ddcbffb82071859f74 /source/blender/src/fluidsim.c
parentf27350174ae1de268f9428e4ab8a365e96837b44 (diff)
Bugfix #3565
Enabling FluidSim on non-mesh object crashed... it uses DerivedMesh. :)
Diffstat (limited to 'source/blender/src/fluidsim.c')
-rw-r--r--source/blender/src/fluidsim.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/src/fluidsim.c b/source/blender/src/fluidsim.c
index b73329175b5..a89c5e876f9 100644
--- a/source/blender/src/fluidsim.c
+++ b/source/blender/src/fluidsim.c
@@ -143,6 +143,10 @@ FluidsimSettings *fluidsimSettingsNew(struct Object *srcob)
{
//char blendDir[FILE_MAXDIR], blendFile[FILE_MAXFILE];
FluidsimSettings *fss;
+
+ /* this call uses derivedMesh methods... */
+ if(srcob->type!=OB_MESH) return NULL;
+
fss= MEM_callocN( sizeof(FluidsimSettings), "fluidsimsettings memory");
fss->type = 0;