From a86f43df9f7940aa83195323f9ac06241091b8ae Mon Sep 17 00:00:00 2001 From: Sergej Reich Date: Wed, 15 Jan 2014 06:08:44 +0100 Subject: Fix T38227: Cloth cache storing only every 10 frames. Make sure pointcache step is set to 1 for cloth when copying objects. --- 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 81f139e48ce..6bda8210f81 100644 --- a/source/blender/modifiers/intern/MOD_cloth.c +++ b/source/blender/modifiers/intern/MOD_cloth.c @@ -150,6 +150,7 @@ static void copyData(ModifierData *md, ModifierData *target) 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->point_cache->step = 1; tclmd->clothObject = NULL; } -- cgit v1.2.3