Changeset View
Changeset View
Standalone View
Standalone View
source/blender/sequencer/intern/strip_relations.c
| Show All 39 Lines | |||||
| #include "IMB_imbuf.h" | #include "IMB_imbuf.h" | ||||
| #include "SEQ_iterator.h" | #include "SEQ_iterator.h" | ||||
| #include "SEQ_prefetch.h" | #include "SEQ_prefetch.h" | ||||
| #include "SEQ_relations.h" | #include "SEQ_relations.h" | ||||
| #include "SEQ_sequencer.h" | #include "SEQ_sequencer.h" | ||||
| #include "SEQ_time.h" | #include "SEQ_time.h" | ||||
| #include "SEQ_transform.h" | |||||
| #include "effects.h" | #include "effects.h" | ||||
| #include "image_cache.h" | #include "image_cache.h" | ||||
| #include "utils.h" | #include "utils.h" | ||||
| /* check whether sequence cur depends on seq */ | /* check whether sequence cur depends on seq */ | ||||
| static bool seq_relations_check_depend(Sequence *seq, Sequence *cur) | static bool seq_relations_check_depend(Sequence *seq, Sequence *cur) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 444 Lines • ▼ Show 20 Lines | SEQ_ALL_BEGIN (scene->ed, sequence) { | ||||
| } | } | ||||
| BLI_gset_insert(used_uuids, (void *)session_uuid); | BLI_gset_insert(used_uuids, (void *)session_uuid); | ||||
| } | } | ||||
| SEQ_ALL_END; | SEQ_ALL_END; | ||||
| BLI_gset_free(used_uuids, NULL); | BLI_gset_free(used_uuids, NULL); | ||||
| } | } | ||||
| void SEQ_relations_framechange_update(Scene *scene, Sequence *seq) | |||||
| { | |||||
| const int frame_end = seq->enddisp; | |||||
| SEQ_time_update_sequence(scene, seq); | |||||
| SEQ_relations_invalidate_cache_preprocessed(scene, seq); | |||||
| SEQ_transform_set_right_handle_frame(scene, seq, frame_end); | |||||
| SEQ_time_update_sequence(scene, seq); | |||||
| } | |||||
| void SEQ_relations_framechange_update_recursive(Scene *scene, const ListBase *seqbase) | |||||
| { | |||||
| LISTBASE_FOREACH (Sequence *, seq, seqbase) { | |||||
| if (seq->type == SEQ_TYPE_META) { | |||||
| SEQ_relations_framechange_update_recursive(scene, &seq->seqbase); | |||||
| } | |||||
| SEQ_relations_framechange_update(scene, seq); | |||||
| } | |||||
| } | |||||