From 53743adc297f74752cd59fe97f8e72b0c8174c1c Mon Sep 17 00:00:00 2001 From: Richard Antalik Date: Fri, 16 Jul 2021 19:09:14 +0200 Subject: 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 --- source/blender/sequencer/intern/strip_edit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/sequencer') 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); -- cgit v1.2.3