Fluid control: WIP commit before weekend, not working is crashing on the first 3 frames
This commit is contained in:
@@ -267,7 +267,6 @@ void free_object(Object *ob)
|
||||
MEM_freeN(ob->pd);
|
||||
}
|
||||
if(ob->soft) sbFree(ob->soft);
|
||||
if(ob->fluidsimSettings) fluidsimSettingsFree(ob->fluidsimSettings);
|
||||
}
|
||||
|
||||
static void unlink_object__unlinkModifierLinks(void *userData, Object *ob, Object **obpoin)
|
||||
@@ -1208,15 +1207,6 @@ Object *copy_object(Object *ob)
|
||||
}
|
||||
obn->soft= copy_softbody(ob->soft);
|
||||
|
||||
/* NT copy fluid sim setting memory */
|
||||
if(obn->fluidsimSettings) {
|
||||
obn->fluidsimSettings = fluidsimSettingsCopy(ob->fluidsimSettings);
|
||||
/* copying might fail... */
|
||||
if(obn->fluidsimSettings) {
|
||||
obn->fluidsimSettings->orgMesh = (Mesh *)obn->data;
|
||||
}
|
||||
}
|
||||
|
||||
copy_object_particlesystems(obn, ob);
|
||||
|
||||
obn->derivedDeform = NULL;
|
||||
|
||||
Reference in New Issue
Block a user