diff options
author | Richard Antalik <richardantalik@gmail.com> | 2021-07-13 13:53:56 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2021-07-13 13:53:56 +0300 |
commit | d374469f4c045355b2e5b17d7ba5dae9c979c8c7 (patch) | |
tree | f8938fd7a693dc79130d958d8192d4db4b4b28b0 /source/blender/sequencer/SEQ_clipboard.h | |
parent | af42b35e53413a90200bd9d8b0c2051ceee081b5 (diff) |
VSE: Make pasted strip active
When adding texts or various simple effects I often copy-paste strips
to reuse properties from a template such as font or position. I assume
this is common workflow. Issue with this workflow is, that active strip
is not changed after pasting, so when adjusting property, it is original
strip that is being modified.
This is not issue when duplicating strips - selection state is
transfered to duplicate strips, such that duplicate of active strip is
set to be active and duplicate of selected strip is set to selected.
Implement same selection transfering behavior in paste operator, that
exists in duplicate operator.
Since strip can be deleted after copying, it is not possible to rely
on sequencer state. This is true even when pasting strips to different
scene. Therefore active strip name must be stored in clipboard.
Reviewed By: sergey, Severin
Differential Revision: https://developer.blender.org/D11781
Diffstat (limited to 'source/blender/sequencer/SEQ_clipboard.h')
-rw-r--r-- | source/blender/sequencer/SEQ_clipboard.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/sequencer/SEQ_clipboard.h b/source/blender/sequencer/SEQ_clipboard.h index 4b2bf69a8ac..ea7f01e6ae3 100644 --- a/source/blender/sequencer/SEQ_clipboard.h +++ b/source/blender/sequencer/SEQ_clipboard.h @@ -29,12 +29,16 @@ extern "C" { struct ListBase; struct Main; +struct Scene; +struct Sequence; extern struct ListBase seqbase_clipboard; extern int seqbase_clipboard_frame; void SEQ_clipboard_pointers_store(struct Main *bmain, struct ListBase *seqbase); void SEQ_clipboard_pointers_restore(struct ListBase *seqbase, struct Main *bmain); void SEQ_clipboard_free(void); +void SEQ_clipboard_active_seq_name_store(struct Scene *scene); +bool SEQ_clipboard_pasted_seq_was_active(struct Sequence *pasted_seq); #ifdef __cplusplus } |