timeline: updated ripple for new invalidation scheme

This commit is contained in:
itsmattkc
2021-07-16 01:48:11 -07:00
parent c41047ab02
commit 2229ce9a69
@@ -447,6 +447,9 @@ void TrackListRippleToolCommand::ripple(bool redo)
if (!all_tracks_unlocked_) {
// If we're not shifting, the whole track must get invalidated
track->Node::InvalidateCache(TimeRange(it.value().earliest_point_of_change, RATIONAL_MAX), Track::kBlockInput);
} else if (pre_latest_out < post_latest_out) {
// If we're here, then a new section has been rippled in that needs to be rendered
track->Node::InvalidateCache(TimeRange(pre_latest_out, post_latest_out), Track::kBlockInput);
}
}
}