Fix T84847: Crash after splitting effect strip

`seq->tmp` was left in invalid state after
`SEQ_sequence_base_dupli_recursive()` which is run by
`scene_copy_data()`

Ensure all strips have `seq->tmp` set to `NULL` before splitting strips.
This commit is contained in:
Richard Antalik 2021-01-26 17:46:34 +01:00
parent c967208460
commit 6d40d72189
Notes: blender-bot 2023-02-13 19:51:09 +01:00
Referenced by issue #84847, Splitting effect strip and grabbing crashes (regression in 2.92)
1 changed files with 4 additions and 0 deletions

View File

@ -1395,6 +1395,10 @@ static int sequencer_split_exec(bContext *C, wmOperator *op)
SEQ_prefetch_stop(scene);
LISTBASE_FOREACH (Sequence *, seq, ed->seqbasep) {
seq->tmp = NULL;
}
LISTBASE_FOREACH_BACKWARD (Sequence *, seq, ed->seqbasep) {
if (use_cursor_position && seq->machine != split_channel) {
continue;