diff options
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_time/space_time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_time/space_time.c b/source/blender/editors/space_time/space_time.c index 454dc6117ba..7928fc6284a 100644 --- a/source/blender/editors/space_time/space_time.c +++ b/source/blender/editors/space_time/space_time.c @@ -236,7 +236,7 @@ static void time_cache_refresh(const bContext *C, SpaceTime *stime, ARegion *ar) } } /* update with final number of frames */ - stc->len = i*4; + stc->len = (i-stc->startframe)*4; stc->array = MEM_mallocN(stc->len*2*sizeof(float), "SpaceTimeCache array"); memcpy(stc->array, array, stc->len*2*sizeof(float)); |