diff options
author | Richard Antalik <richardantalik@gmail.com> | 2022-01-19 16:12:23 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2022-01-19 16:12:23 +0300 |
commit | e49bf4019b498be42b9a39657604ad750a99bbea (patch) | |
tree | 3694759dab31e9fa63801c3bd939525dc1af8645 /source/blender/sequencer/SEQ_sequencer.h | |
parent | 17882988042e3b8adeffbc2072a5a457cb6efb52 (diff) |
Cleanup: VSE animation handling
- Move functions that handle animation to own file - `animation.c`
- Refactor `SEQ_offset_animdata` and `SEQ_free_animdata` functions
- Add function `SEQ_fcurves_by_strip_get` to provide more granular
and explicit way for operators to handle animation
- Remove function `SEQ_dupe_animdata`, do curve duplication explicitly
in operator code, which makes more sense to do. Further this function
was also used for renaming strips which makes no sense.
- Refactor usage of function `SEQ_free_animdata` and remove XXX comment.
Now this functiuon is no longer called when `Sequence` data is freed
implicitly, it is done explicitly in high level function
`SEQ_edit_remove_flagged_sequences`
Reviewed By: sergey
Differential Revision: https://developer.blender.org/D13852
Diffstat (limited to 'source/blender/sequencer/SEQ_sequencer.h')
-rw-r--r-- | source/blender/sequencer/SEQ_sequencer.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/sequencer/SEQ_sequencer.h b/source/blender/sequencer/SEQ_sequencer.h index 1229f6f7bea..2e340049dbd 100644 --- a/source/blender/sequencer/SEQ_sequencer.h +++ b/source/blender/sequencer/SEQ_sequencer.h @@ -84,7 +84,7 @@ struct ListBase *SEQ_active_seqbase_get(const struct Editing *ed); */ void SEQ_seqbase_active_set(struct Editing *ed, struct ListBase *seqbase); struct Sequence *SEQ_sequence_alloc(ListBase *lb, int timeline_frame, int machine, int type); -void SEQ_sequence_free(struct Scene *scene, struct Sequence *seq, bool do_clean_animdata); +void SEQ_sequence_free(struct Scene *scene, struct Sequence *seq); /** * Create and initialize #MetaStack, append it to `ed->metastack` ListBase * @@ -107,8 +107,6 @@ struct MetaStack *SEQ_meta_stack_active_get(const struct Editing *ed); * \param ms: meta stack */ void SEQ_meta_stack_free(struct Editing *ed, struct MetaStack *ms); -void SEQ_offset_animdata(struct Scene *scene, struct Sequence *seq, int ofs); -void SEQ_dupe_animdata(struct Scene *scene, const char *name_src, const char *name_dst); struct Sequence *SEQ_sequence_dupli_recursive(const struct Scene *scene_src, struct Scene *scene_dst, struct ListBase *new_seq_list, |