Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Karhu <jhkarh@gmail.com>2010-09-28 13:27:35 +0400
committerJanne Karhu <jhkarh@gmail.com>2010-09-28 13:27:35 +0400
commit8d50b283cbc663f08b0c4b0e43ed8fdee4a93549 (patch)
tree7c8fb20f69dd1a1021bb0ed487561b94450dcb77 /source/blender/blenkernel/intern/pointcache.c
parent26482da2b48343338edcaecd4a483a8f5e1dab8f (diff)
Fix for own recent commit 32147
* Pointcache wasn't checked to be valid before allocating the cached frames array
Diffstat (limited to 'source/blender/blenkernel/intern/pointcache.c')
-rw-r--r--source/blender/blenkernel/intern/pointcache.c2
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;