From d6b90f4e94997e04e64b5c3bce89bd028f2ce80e Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Sat, 9 Apr 2022 16:37:38 -0700 Subject: [PATCH] timeline: set waveform after initial input copy --- app/widget/timelinewidget/undo/timelineundosplit.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/widget/timelinewidget/undo/timelineundosplit.cpp b/app/widget/timelinewidget/undo/timelineundosplit.cpp index 0d9c4e0c9..20cc8a803 100644 --- a/app/widget/timelinewidget/undo/timelineundosplit.cpp +++ b/app/widget/timelinewidget/undo/timelineundosplit.cpp @@ -38,14 +38,15 @@ void BlockSplitCommand::redo() if (!reconnect_tree_command_) { reconnect_tree_command_ = new MultiUndoCommand(); new_block_ = static_cast(Node::CopyNodeInGraph(block_, reconnect_tree_command_)); - if (ClipBlock *new_clip = dynamic_cast(new_block_)) { - ClipBlock *old_clip = static_cast(block_); - new_clip->waveform() = old_clip->waveform(); - } } reconnect_tree_command_->redo_now(); + if (ClipBlock *new_clip = dynamic_cast(new_block_)) { + ClipBlock *old_clip = static_cast(block_); + new_clip->waveform() = old_clip->waveform(); + } + // Determine our new lengths rational new_length = point_ - block_->in(); rational new_part_length = block_->out() - point_;