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
committerRichard Antalik <richardantalik@gmail.com>2020-06-26 16:51:08 +0300
commitd33e7152597361490eb8240ce931df0ec7f12ea5 (patch)
treeed3722ce522eeb31a76df8c4592e0e5a74c4ce59 /source/blender
parent8bcfa0d1fb9f31e16e67a1bc58c97c9b4445107f (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
Diffstat (limited to 'source/blender')
-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 60d98407025..2c8c928c65c 100644
--- a/source/blender/editors/space_sequencer/sequencer_edit.c
+++ b/source/blender/editors/space_sequencer/sequencer_edit.c
@@ -3453,6 +3453,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;