diff options
author | Janne Karhu <jhkarh@gmail.com> | 2010-12-18 12:46:52 +0300 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2010-12-18 12:46:52 +0300 |
commit | a93411629811ec20f576895c0cb515b9abd7ec19 (patch) | |
tree | f5094f9f39f41f9a369ded049cf1dcbd71a97a47 /source/blender/blenkernel | |
parent | ee762ce93f8f5591793445ab678ed0ea58703003 (diff) |
Fix for [#25282] Crash when weting initial mesh pressets with a smoke simulation
Diffstat (limited to 'source/blender/blenkernel')
-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 d131a3c3592..8c5d38b63a3 100644 --- a/source/blender/blenkernel/intern/pointcache.c +++ b/source/blender/blenkernel/intern/pointcache.c @@ -1946,7 +1946,7 @@ void BKE_ptcache_id_clear(PTCacheID *pid, int mode, int cfra) BLI_join_dirfile(path_full, path, de->d_name); BLI_delete(path_full, 0, 0); - if(frame >=sta && frame <= end) + if(pid->cache->cached_frames && frame >=sta && frame <= end) pid->cache->cached_frames[frame-sta] = 0; } } |