timelineview: fixed bug that wouldn't invalidate all necessary regions of the

cache when using rippleremovearea
This commit is contained in:
itsmattkc
2020-02-22 00:49:57 +11:00
parent 65db108be2
commit c7a3906c97
+3 -2
View File
@@ -179,6 +179,7 @@ void TrackRippleRemoveAreaCommand::redo()
static_cast<NodeGraph*>(track_->parent())->AddNode(copy);
Node::CopyInputs(splice_, copy);
copy->set_length_and_media_in(splice_original_length_ - (out_ - splice_->in()));
track_->InsertBlockAfter(copy, splice_);
@@ -233,7 +234,7 @@ void TrackRippleRemoveAreaCommand::redo()
track_->UnblockInvalidateCache();
track_->InvalidateCache(in_, out_);
track_->InvalidateCache(in_, splice_ ? out_ : RATIONAL_MAX);
}
void TrackRippleRemoveAreaCommand::undo()
@@ -277,7 +278,7 @@ void TrackRippleRemoveAreaCommand::undo()
track_->UnblockInvalidateCache();
track_->InvalidateCache(in_, out_);
track_->InvalidateCache(in_, splice_ ? out_ : RATIONAL_MAX);
}
TrackPlaceBlockCommand::TrackPlaceBlockCommand(TrackList *timeline, int track, Block *block, rational in, QUndoCommand *parent) :