timeline: temporarily disable optimization that doesn't re-cache after split

Since waveforms are generated during the cache process, if clips don't cache,
a waveform isn't generated for them. Therefore for now, this optimization will
be disabled but should be re-enabled later when waveforms are improved to handle
this situation.
This commit is contained in:
itsmattkc
2020-03-30 15:14:06 +11:00
parent 5aa4f91c46
commit 6624f14517
+5 -4
View File
@@ -370,7 +370,8 @@ BlockSplitCommand::BlockSplitCommand(TrackOutput* track, Block *block, rational
void BlockSplitCommand::redo_internal()
{
track_->BlockInvalidateCache();
// FIXME: Reintroduce this optimization when block waveforms update automatically
// track_->BlockInvalidateCache();
static_cast<NodeGraph*>(block_->parent())->AddNode(new_block_);
Node::CopyInputs(block_, new_block_);
@@ -388,12 +389,12 @@ void BlockSplitCommand::redo_internal()
NodeParam::ConnectEdge(new_block_->output(), transition);
}
track_->UnblockInvalidateCache();
// track_->UnblockInvalidateCache();
}
void BlockSplitCommand::undo_internal()
{
track_->BlockInvalidateCache();
// track_->BlockInvalidateCache();
block_->set_length_and_media_out(old_length_);
track_->RippleRemoveBlock(new_block_);
@@ -405,7 +406,7 @@ void BlockSplitCommand::undo_internal()
NodeParam::ConnectEdge(block_->output(), transition);
}
track_->UnblockInvalidateCache();
// track_->UnblockInvalidateCache();
}
Block *BlockSplitCommand::new_block()