timeline: invalidate after place operation
Fixes regression introduced in ef206e9532
Fixes #1654
This commit is contained in:
@@ -1413,6 +1413,10 @@ public:
|
||||
|
||||
track->EndOperation();
|
||||
|
||||
if (ripple_remove_command_) {
|
||||
track->Node::InvalidateCache(TimeRange(insert_->in(), insert_->out()), Track::kBlockInput);
|
||||
}
|
||||
|
||||
for (int i=0; i<position_commands_.size(); i++) {
|
||||
position_commands_.at(i)->redo();
|
||||
}
|
||||
@@ -1426,6 +1430,8 @@ public:
|
||||
|
||||
Track* t = timeline_->GetTrackAt(track_index_);
|
||||
|
||||
TimeRange insert_range(insert_->in(), insert_->out());
|
||||
|
||||
// Firstly, remove our insert
|
||||
t->BeginOperation();
|
||||
t->RippleRemoveBlock(insert_);
|
||||
@@ -1439,6 +1445,10 @@ public:
|
||||
}
|
||||
t->EndOperation();
|
||||
|
||||
if (ripple_remove_command_) {
|
||||
t->Node::InvalidateCache(insert_range, Track::kBlockInput);
|
||||
}
|
||||
|
||||
// Remove tracks if we added them
|
||||
for (int i=add_track_commands_.size()-1; i>=0; i--) {
|
||||
add_track_commands_.at(i)->undo();
|
||||
|
||||
Reference in New Issue
Block a user