diff options
author | Sergej Reich <sergej.reich@googlemail.com> | 2014-01-15 09:08:44 +0400 |
---|---|---|
committer | Sergej Reich <sergej.reich@googlemail.com> | 2014-01-15 09:47:03 +0400 |
commit | a86f43df9f7940aa83195323f9ac06241091b8ae (patch) | |
tree | d7b4474de4cbda1be25e67c8ac915663cfdac1da /source/blender/blenloader/intern/versioning_legacy.c | |
parent | 435a896fbe458b0e6046aecced5a7bc52e4f7333 (diff) |
Fix T38227: Cloth cache storing only every 10 frames.
Make sure pointcache step is set to 1 for cloth when copying objects.
Diffstat (limited to 'source/blender/blenloader/intern/versioning_legacy.c')
-rw-r--r-- | source/blender/blenloader/intern/versioning_legacy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/versioning_legacy.c b/source/blender/blenloader/intern/versioning_legacy.c index e90a635db90..cb3053ccef4 100644 --- a/source/blender/blenloader/intern/versioning_legacy.c +++ b/source/blender/blenloader/intern/versioning_legacy.c @@ -2781,8 +2781,10 @@ void blo_do_versions_pre250(FileData *fd, Library *lib, Main *main) for (md = ob->modifiers.first; md; md = md->next) { if (md->type == eModifierType_Cloth) { ClothModifierData *clmd = (ClothModifierData*) md; - if (!clmd->point_cache) + if (!clmd->point_cache) { clmd->point_cache = BKE_ptcache_add(&clmd->ptcaches); + clmd->point_cache->step = 1; + } } } } |