diff options
author | Janne Karhu <jhkarh@gmail.com> | 2010-12-19 00:16:37 +0300 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2010-12-19 00:16:37 +0300 |
commit | d920bf50725dcfab52b96f8cb096c17d7590c589 (patch) | |
tree | 9b17ca51f8c02f5e83098d375274e45e5df54f33 /source/blender/blenkernel/intern | |
parent | e93a7aa849ddefee9a5fb9e97764502adff7f83c (diff) |
Mistake in previous own commit, checking the wrong cache frame.
Diffstat (limited to 'source/blender/blenkernel/intern')
-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 b87347f4975..3962c6a7500 100644 --- a/source/blender/blenkernel/intern/pointcache.c +++ b/source/blender/blenkernel/intern/pointcache.c @@ -1485,7 +1485,7 @@ int BKE_ptcache_read(PTCacheID *pid, float cfra, float frs_sec) cfra2 = ptcache_read_init(pid, &cache2, &totpoint2); /* don't read old cache if already simulated past cached frame */ - if(!cache1 && cfra1 && cfra1 <= pid->cache->simframe) + if(!cache1 && cfra2 && cfra2 <= pid->cache->simframe) goto cleanup; if(cfra1 && cfra1==cfra2) goto cleanup; |