diff options
author | Kent Mein <mein@cs.umn.edu> | 2007-09-14 00:44:00 +0400 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2007-09-14 00:44:00 +0400 |
commit | 670611e408ac62bfa702cbe74e257a918252d377 (patch) | |
tree | fd47ba052533bf3ee32bd3871631cda9fdd50491 /source | |
parent | 256ebc10a0e1ab86cbc42c2aad1a55e723c3e06f (diff) |
This should hopefully fix bug
[#7310] FluidSim Domain/Fluid from Duplicate Object Bug Monitor
patch provided by Genscher
Kent
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/editobject.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index 360a3b0732c..9188e73e76d 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -74,6 +74,7 @@ #include "DNA_meta_types.h" #include "DNA_nla_types.h" #include "DNA_object_types.h" +#include "DNA_object_fluidsim.h" #include "DNA_object_force.h" #include "DNA_scene_types.h" #include "DNA_space_types.h" @@ -4735,6 +4736,11 @@ void adduplicate(int mode, int dupflag) ID_NEW_US2( obn->data ) else { obn->data= copy_mesh(obn->data); + + if(obn->fluidsimSettings) { + obn->fluidsimSettings->orgMesh = (Mesh *)obn->data; + } + didit= 1; } id->us--; |