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:
authorKent Mein <mein@cs.umn.edu>2007-09-14 00:44:00 +0400
committerKent Mein <mein@cs.umn.edu>2007-09-14 00:44:00 +0400
commit670611e408ac62bfa702cbe74e257a918252d377 (patch)
treefd47ba052533bf3ee32bd3871631cda9fdd50491 /source/blender/src
parent256ebc10a0e1ab86cbc42c2aad1a55e723c3e06f (diff)
This should hopefully fix bug
[#7310] FluidSim Domain/Fluid from Duplicate Object Bug Monitor patch provided by Genscher Kent
Diffstat (limited to 'source/blender/src')
-rw-r--r--source/blender/src/editobject.c6
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--;