Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2020-07-29 16:02:44 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-07-30 18:29:48 +0300
commitff1d5991726407a8f8cba3c9a5aac7da34be54bd (patch)
treee2d3c48adb3e0cf2b6aa8730e9080ad5fa61937e
parent9cac158e962f1da656edbd92a951444e012e2a08 (diff)
Fix T79357: VSE crash on prefetching when performing cuts
Caused by {rBa1a333a1e92e} `BKE_sequencer_prefetch_get_original_sequence` cant get a sequence in `BKE_sequencer_cache_put`. rBa1a333a1e92e moved multiple NULL checks (including the one checking seq) above BKE_sequencer_prefetch_get_original_sequence (this should never return NULL really, but this is for another fix). So solution suggested by @ISS is to just stop prefetching all together before changing content of seqbase. Maniphest Tasks: T79357 Differential Revision: https://developer.blender.org/D8421
-rw-r--r--source/blender/editors/space_sequencer/sequencer_edit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c
index ce4fc0ff538..3fbc31d5240 100644
--- a/source/blender/editors/space_sequencer/sequencer_edit.c
+++ b/source/blender/editors/space_sequencer/sequencer_edit.c
@@ -2337,6 +2337,8 @@ static int sequencer_split_exec(bContext *C, wmOperator *op)
split_side = RNA_enum_get(op->ptr, "side");
ignore_selection = RNA_boolean_get(op->ptr, "ignore_selection");
+ BKE_sequencer_prefetch_stop(scene);
+
if (split_hard == SEQ_SPLIT_HARD) {
changed = split_seq_list(bmain,
scene,