diff options
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/sequencer/intern/image_cache.c | 5 | ||||
-rw-r--r-- | source/blender/sequencer/intern/sequencer.h | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/source/blender/sequencer/intern/image_cache.c b/source/blender/sequencer/intern/image_cache.c index 891d0d74657..4bbf1838b4e 100644 --- a/source/blender/sequencer/intern/image_cache.c +++ b/source/blender/sequencer/intern/image_cache.c @@ -742,9 +742,8 @@ static float seq_cache_timeline_frame_to_frame_index(Sequence *seq, float timeli if (type == SEQ_CACHE_STORE_RAW) { return seq_give_stripelem_index(seq, timeline_frame); } - else { - return timeline_frame - seq->start; - } + + return timeline_frame - seq->start; } static float seq_cache_frame_index_to_timeline_frame(Sequence *seq, float frame_index) diff --git a/source/blender/sequencer/intern/sequencer.h b/source/blender/sequencer/intern/sequencer.h index d5220de809f..a7217e45ddf 100644 --- a/source/blender/sequencer/intern/sequencer.h +++ b/source/blender/sequencer/intern/sequencer.h @@ -56,12 +56,12 @@ void BKE_sequencer_base_clipboard_pointers_free(struct ListBase *seqbase); struct ImBuf *BKE_sequencer_cache_get(const SeqRenderData *context, struct Sequence *seq, - float cfra, + float timeline_frame, int type, bool skip_disk_cache); void BKE_sequencer_cache_put(const SeqRenderData *context, struct Sequence *seq, - float cfra, + float timeline_frame, int type, struct ImBuf *i, float cost, @@ -74,7 +74,7 @@ bool BKE_sequencer_cache_put_if_possible(const SeqRenderData *context, float cost, bool skip_disk_cache); bool BKE_sequencer_cache_recycle_item(struct Scene *scene); -void BKE_sequencer_cache_free_temp_cache(struct Scene *scene, short id, int cfra); +void BKE_sequencer_cache_free_temp_cache(struct Scene *scene, short id, int timeline_frame); void BKE_sequencer_cache_destruct(struct Scene *scene); void BKE_sequencer_cache_cleanup_all(struct Main *bmain); void BKE_sequencer_cache_cleanup_sequence(struct Scene *scene, |