diff options
author | Daniel Genrich <daniel.genrich@gmx.net> | 2013-03-20 21:45:35 +0400 |
---|---|---|
committer | Daniel Genrich <daniel.genrich@gmx.net> | 2013-03-20 21:45:35 +0400 |
commit | b5ac9639dc827c08255be32f312998a153f7f51c (patch) | |
tree | b41ef8d9e859d1a91f9ed65392f4f7ff264a58fa /source/blender/modifiers/intern | |
parent | 808ac6debf45952974c5723bf93a83b1107d6e61 (diff) |
Bugfix [#34710] Crash on duplicating object with cloth modifier.
Caused by last commit by me.
Diffstat (limited to 'source/blender/modifiers/intern')
-rw-r--r-- | source/blender/modifiers/intern/MOD_cloth.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |