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:
authorRichard Antalik <richardantalik@gmail.com>2020-06-26 16:49:11 +0300
committerJeroen Bakker <jeroen@blender.org>2020-07-29 11:04:57 +0300
commit322c67c9742b9c9a6ba216a28418288864c6bda3 (patch)
tree2279450a8ed4ea1161052942667c52490f51608b
parent3058bf075776de6a426391024aeb0d5257eb5898 (diff)
Fix T77669: Copy-pasting strip twice crashes Blender
In rBeaee2b411935 I removed BKE_sequencer_base_clipboard_pointers_store from paste function, because I wanted pasted strip to always reference copied strip, not recently pasted one. This worked well with ordinary strips, but not if they reference ID. Add back BKE_sequencer_base_clipboard_pointers_store call. I thought that always referencing original strip would be more correct approach, but it doesn't matter now. Referencing recently pasted seems to be cleanest way to do this. Reviewed By: brecht Differential Revision: https://developer.blender.org/D8129
-rw-r--r--source/blender/editors/space_sequencer/sequencer_edit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c
index 6f9be4339ec..aa10c9bb050 100644
--- a/source/blender/editors/space_sequencer/sequencer_edit.c
+++ b/source/blender/editors/space_sequencer/sequencer_edit.c
@@ -3514,6 +3514,7 @@ static int sequencer_paste_exec(bContext *C, wmOperator *UNUSED(op))
* on the actual data-blocks. */
BKE_sequencer_base_clipboard_pointers_restore(&seqbase_clipboard, bmain);
BKE_sequence_base_dupli_recursive(scene, scene, &nseqbase, &seqbase_clipboard, 0, 0);
+ BKE_sequencer_base_clipboard_pointers_store(bmain, &seqbase_clipboard);
iseq_first = nseqbase.first;