From eaee2b4119359493b87422100e913a5e1dc9a001 Mon Sep 17 00:00:00 2001 From: Richard Antalik Date: Sun, 10 May 2020 08:26:24 +0200 Subject: Fix T36263: Pasted strip doesnt have F-Curve keyframes from the original Original code for copying strips tried to change strip name 2 times before copying and once again after pasting. Store structs in clipboard in unchanged state, so we can reference data after pasting easily. Better method would probably be storing animation data in clipboard as well, so we can copy animated strips even between scenes. Reviewed By: brecht Differential Revision: https://developer.blender.org/D7638 --- source/blender/blenkernel/intern/sequencer.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/blenkernel') diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c index 46edcea26c0..6791424694a 100644 --- a/source/blender/blenkernel/intern/sequencer.c +++ b/source/blender/blenkernel/intern/sequencer.c @@ -131,6 +131,7 @@ static ThreadMutex seq_render_mutex = BLI_MUTEX_INITIALIZER; #define SELECT 1 ListBase seqbase_clipboard; int seqbase_clipboard_frame; + SequencerDrawView sequencer_view3d_fn = NULL; /* NULL in background mode */ #if 0 /* unused function */ @@ -4618,6 +4619,10 @@ bool BKE_sequence_test_overlap(ListBase *seqbasep, Sequence *test) void BKE_sequence_translate(Scene *evil_scene, Sequence *seq, int delta) { + if (delta == 0) { + return; + } + BKE_sequencer_offset_animdata(evil_scene, seq, delta); seq->start += delta; -- cgit v1.2.3