timeline: copy waveform when copying

This commit is contained in:
itsmattkc
2021-08-25 12:27:26 -07:00
parent dc66c30357
commit 6bd7bc4cca
4 changed files with 22 additions and 3 deletions
@@ -605,6 +605,9 @@ void PointerTool::FinishDrag(TimelineViewMouseEvent *event)
// Duplicate rather than move
// Place the copy instead of the original block
block = static_cast<Block*>(Node::CopyNodeInGraph(block, command));
if (ClipBlock *new_clip = dynamic_cast<ClipBlock*>(block)) {
new_clip->waveform() = static_cast<ClipBlock*>(p.block)->waveform();
}
}
const Track::Reference& track_ref = p.ghost->GetAdjustedTrack();