Bugfix [#34710] Crash on duplicating object with cloth modifier.

Caused by last commit by me.
This commit is contained in:
Daniel Genrich 2013-03-20 17:45:35 +00:00
parent 808ac6debf
commit b5ac9639dc

@ -155,6 +155,7 @@ static void copyData(ModifierData *md, ModifierData *target)
if (clmd->sim_parms->effector_weights)
tclmd->sim_parms->effector_weights = MEM_dupallocN(clmd->sim_parms->effector_weights);
tclmd->coll_parms = MEM_dupallocN(clmd->coll_parms);
tclmd->point_cache = BKE_ptcache_add(&tclmd->ptcaches);
tclmd->clothObject = NULL;
}