Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/seqcache.c
| Show First 20 Lines • Show All 1,323 Lines • ▼ Show 20 Lines | void BKE_sequencer_cache_put(const SeqRenderData *context, | ||||
| } | } | ||||
| Scene *scene = context->scene; | Scene *scene = context->scene; | ||||
| if (context->is_prefetch_render) { | if (context->is_prefetch_render) { | ||||
| context = BKE_sequencer_prefetch_get_original_context(context); | context = BKE_sequencer_prefetch_get_original_context(context); | ||||
| scene = context->scene; | scene = context->scene; | ||||
| seq = BKE_sequencer_prefetch_get_original_sequence(seq, scene); | seq = BKE_sequencer_prefetch_get_original_sequence(seq, scene); | ||||
| BLI_assert(seq != NULL); | |||||
| } | } | ||||
| /* Prevent reinserting, it breaks cache key linking. */ | /* Prevent reinserting, it breaks cache key linking. */ | ||||
| ImBuf *test = BKE_sequencer_cache_get(context, seq, cfra, type, true); | ImBuf *test = BKE_sequencer_cache_get(context, seq, cfra, type, true); | ||||
| if (test) { | if (test) { | ||||
| IMB_freeImBuf(test); | IMB_freeImBuf(test); | ||||
| return; | return; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines | |||||