Bugfix [#34710] Crash on duplicating object with cloth modifier.
Caused by last commit by me.
This commit is contained in:
@@ -155,6 +155,7 @@ static void copyData(ModifierData *md, ModifierData *target)
|
|||||||
if (clmd->sim_parms->effector_weights)
|
if (clmd->sim_parms->effector_weights)
|
||||||
tclmd->sim_parms->effector_weights = MEM_dupallocN(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->coll_parms = MEM_dupallocN(clmd->coll_parms);
|
||||||
|
tclmd->point_cache = BKE_ptcache_add(&tclmd->ptcaches);
|
||||||
tclmd->clothObject = NULL;
|
tclmd->clothObject = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user