diff options
author | Richard Antalik <richardantalik@gmail.com> | 2021-07-16 20:09:14 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2021-07-16 20:16:35 +0300 |
commit | 53743adc297f74752cd59fe97f8e72b0c8174c1c (patch) | |
tree | 85d721c75e5d55f03e3df4095751771c44d1a6db /source/blender/sequencer | |
parent | 1dcf0f9cf11808a9659b456a424a6ac5e04257e6 (diff) |
VSE: Fix multicam splitting all selected strips
`split_multicam` used split operator, where if more strips than
multicam were selected, all would be split, which is undesirable.
Add `Sequence.split()` RNA API function. to split individual strips.
Function accepts `frame` and `split_method arguments`. Returns right
strip after splitting.
In case when strip being split have effects, these will be split too, so
no invalid state should be created.
Selection is not handled, this is by design up to user.
Reviewed By: sergey
Differential Revision: https://developer.blender.org/D11926
Diffstat (limited to 'source/blender/sequencer')
-rw-r--r-- | source/blender/sequencer/intern/strip_edit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/sequencer/intern/strip_edit.c b/source/blender/sequencer/intern/strip_edit.c index b9278b9f971..0dc8dfa10d7 100644 --- a/source/blender/sequencer/intern/strip_edit.c +++ b/source/blender/sequencer/intern/strip_edit.c @@ -407,6 +407,8 @@ Sequence *SEQ_edit_strip_split(Main *bmain, BLI_addtail(&left_strips, seq); } + SEQ_collection_free(collection); + /* Sort list, so that no strip can depend on next strip in list. * This is important for SEQ_time_update_sequence functionality. */ SEQ_sort(&left_strips); |