[Bf-blender-cvs] [322c67c9742] blender-v2.83-release: Fix T77669: Copy-pasting strip twice crashes Blender
Richard Antalik
noreply at git.blender.org
Wed Jul 29 10:53:11 CEST 2020
Commit: 322c67c9742b9c9a6ba216a28418288864c6bda3
Author: Richard Antalik
Date: Fri Jun 26 15:49:11 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB322c67c9742b9c9a6ba216a28418288864c6bda3
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
===================================================================
M source/blender/editors/space_sequencer/sequencer_edit.c
===================================================================
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;
More information about the Bf-blender-cvs
mailing list