From e649982bde2ba7364cc63c4d892691d3e3f328d7 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Thu, 28 Feb 2019 11:17:57 -0800 Subject: [PATCH] Sequence::copy copies markers too --- project/sequence.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/project/sequence.cpp b/project/sequence.cpp index 2e070ce00..da1bad08f 100644 --- a/project/sequence.cpp +++ b/project/sequence.cpp @@ -42,6 +42,8 @@ SequencePtr Sequence::copy() { s->frame_rate = frame_rate; s->audio_frequency = audio_frequency; s->audio_layout = audio_layout; + + // deep copy all of the sequence's clips s->clips.resize(clips.size()); for (int i=0;iclips[i] = copy; } } + + // copy all of the sequence's markers + s->markers = markers; + return s; }