diff options
author | Janne Karhu <jhkarh@gmail.com> | 2010-09-28 13:27:35 +0400 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2010-09-28 13:27:35 +0400 |
commit | 8d50b283cbc663f08b0c4b0e43ed8fdee4a93549 (patch) | |
tree | 7c8fb20f69dd1a1021bb0ed487561b94450dcb77 | |
parent | 26482da2b48343338edcaecd4a483a8f5e1dab8f (diff) |
Fix for own recent commit 32147
* Pointcache wasn't checked to be valid before allocating the cached frames array
-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 5007ce68a67..c3df8f87d21 100644 --- a/source/blender/blenkernel/intern/pointcache.c +++ b/source/blender/blenkernel/intern/pointcache.c @@ -2116,7 +2116,7 @@ void BKE_ptcache_id_time(PTCacheID *pid, Scene *scene, float cfra, int *startfra } } - if(cache->cached_frames==NULL) { + if(cache->cached_frames==NULL && cache->endframe > cache->startframe) { int sta=cache->startframe; int end=cache->endframe; int i=0; |