timeline: set waveform after initial input copy
This commit is contained in:
@@ -38,14 +38,15 @@ void BlockSplitCommand::redo()
|
|||||||
if (!reconnect_tree_command_) {
|
if (!reconnect_tree_command_) {
|
||||||
reconnect_tree_command_ = new MultiUndoCommand();
|
reconnect_tree_command_ = new MultiUndoCommand();
|
||||||
new_block_ = static_cast<Block*>(Node::CopyNodeInGraph(block_, reconnect_tree_command_));
|
new_block_ = static_cast<Block*>(Node::CopyNodeInGraph(block_, reconnect_tree_command_));
|
||||||
if (ClipBlock *new_clip = dynamic_cast<ClipBlock*>(new_block_)) {
|
|
||||||
ClipBlock *old_clip = static_cast<ClipBlock*>(block_);
|
|
||||||
new_clip->waveform() = old_clip->waveform();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
reconnect_tree_command_->redo_now();
|
reconnect_tree_command_->redo_now();
|
||||||
|
|
||||||
|
if (ClipBlock *new_clip = dynamic_cast<ClipBlock*>(new_block_)) {
|
||||||
|
ClipBlock *old_clip = static_cast<ClipBlock*>(block_);
|
||||||
|
new_clip->waveform() = old_clip->waveform();
|
||||||
|
}
|
||||||
|
|
||||||
// Determine our new lengths
|
// Determine our new lengths
|
||||||
rational new_length = point_ - block_->in();
|
rational new_length = point_ - block_->in();
|
||||||
rational new_part_length = block_->out() - point_;
|
rational new_part_length = block_->out() - point_;
|
||||||
|
|||||||
Reference in New Issue
Block a user