Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/sequencer.c
| Show First 20 Lines • Show All 5,995 Lines • ▼ Show 20 Lines | if (seq->enddisp < cfra || seq->startdisp > cfra) { | ||||
| BKE_sequence_free_anim(seq); | BKE_sequence_free_anim(seq); | ||||
| } | } | ||||
| if (seq->type == SEQ_TYPE_META) { | if (seq->type == SEQ_TYPE_META) { | ||||
| sequencer_all_free_anim_ibufs(&seq->seqbase, cfra); | sequencer_all_free_anim_ibufs(&seq->seqbase, cfra); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| void BKE_sequencer_all_free_anim_ibufs(Main *bmain, int cfra) | void BKE_sequencer_all_free_anim_ibufs(Scene *scene, int cfra) | ||||
| { | { | ||||
| for (Scene *scene = bmain->scenes.first; scene != NULL; scene = scene->id.next) { | |||||
| Editing *ed = BKE_sequencer_editing_get(scene, false); | Editing *ed = BKE_sequencer_editing_get(scene, false); | ||||
| if (ed == NULL) { | if (ed == NULL) { | ||||
| /* Ignore scenes without sequencer. */ | return; | ||||
| continue; | |||||
| } | } | ||||
| sequencer_all_free_anim_ibufs(&ed->seqbase, cfra); | sequencer_all_free_anim_ibufs(&ed->seqbase, cfra); | ||||
| BKE_sequencer_cache_cleanup(scene); | BKE_sequencer_cache_cleanup(scene); | ||||
| } | } | ||||
| } | |||||