diff options
author | Janne Karhu <jhkarh@gmail.com> | 2010-11-02 18:21:43 +0300 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2010-11-02 18:21:43 +0300 |
commit | 130088300bec57aa0f11042bb09e48a67417a514 (patch) | |
tree | 38c8632e5a1305f879445e9b06ce0e1b27e1c031 /source | |
parent | 369a5cc29e80d0ac30f9db444f2c0f9c1da32e01 (diff) |
Fix for [#24501] Apeend object with cloth sim from another file crash.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/pointcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/pointcache.c b/source/blender/blenkernel/intern/pointcache.c index 37d2b103ef0..bd37abc266b 100644 --- a/source/blender/blenkernel/intern/pointcache.c +++ b/source/blender/blenkernel/intern/pointcache.c @@ -2002,7 +2002,7 @@ void BKE_ptcache_id_clear(PTCacheID *pid, int mode, int cfra) if((mode==PTCACHE_CLEAR_BEFORE && pm->frame < cfra) || (mode==PTCACHE_CLEAR_AFTER && pm->frame > cfra) ) { link = pm; - if(pm->frame >=sta && pm->frame <= end) + if(pid->cache->cached_frames && pm->frame >=sta && pm->frame <= end) pid->cache->cached_frames[pm->frame-sta] = 0; ptcache_free_data(pm); pm = pm->next; |