From b5ac9639dc827c08255be32f312998a153f7f51c Mon Sep 17 00:00:00 2001 From: Daniel Genrich Date: Wed, 20 Mar 2013 17:45:35 +0000 Subject: Bugfix [#34710] Crash on duplicating object with cloth modifier. Caused by last commit by me. --- source/blender/modifiers/intern/MOD_cloth.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/modifiers/intern/MOD_cloth.c') diff --git a/source/blender/modifiers/intern/MOD_cloth.c b/source/blender/modifiers/intern/MOD_cloth.c index 808dfbae810..da0758a09d0 100644 --- a/source/blender/modifiers/intern/MOD_cloth.c +++ b/source/blender/modifiers/intern/MOD_cloth.c @@ -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; } -- cgit v1.2.3