remove shifts, operations, and make caches node-agnostic
This commit is contained in:
@@ -53,7 +53,6 @@ void BlockSplitCommand::redo()
|
||||
|
||||
// Begin an operation
|
||||
Track* track = block_->track();
|
||||
track->BeginOperation();
|
||||
|
||||
// Set lengths
|
||||
block_->set_length_and_media_out(new_length);
|
||||
@@ -76,16 +75,12 @@ void BlockSplitCommand::redo()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
track->EndOperation();
|
||||
}
|
||||
|
||||
void BlockSplitCommand::undo()
|
||||
{
|
||||
Track* track = block_->track();
|
||||
|
||||
track->BeginOperation();
|
||||
|
||||
if (moved_transition_.IsValid()) {
|
||||
Node::DisconnectEdge(new_block(), moved_transition_);
|
||||
Node::ConnectEdge(block_, moved_transition_);
|
||||
@@ -96,8 +91,6 @@ void BlockSplitCommand::undo()
|
||||
|
||||
// If we ran a reconnect command, disconnect now
|
||||
reconnect_tree_command_->undo_now();
|
||||
|
||||
track->EndOperation();
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user