This should hopefully fix bug
authorKent Mein <mein@cs.umn.edu>
Thu, 13 Sep 2007 20:44:00 +0000 (20:44 +0000)
committerKent Mein <mein@cs.umn.edu>
Thu, 13 Sep 2007 20:44:00 +0000 (20:44 +0000)
[#7310] FluidSim Domain/Fluid from Duplicate Object Bug Monitor

patch provided by Genscher

Kent

source/blender/src/editobject.c

index 360a3b0732cab1c8842d3ec76cb63f9a7f6298fd..9188e73e76d5e4d12f14083346b308540619d8fa 100644 (file)
@@ -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--;