From 2229ce9a696aa88d87f31676311485957eb4449a Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Fri, 16 Jul 2021 01:48:11 -0700 Subject: [PATCH] timeline: updated ripple for new invalidation scheme --- app/widget/timelinewidget/undo/timelineundoripple.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/widget/timelinewidget/undo/timelineundoripple.cpp b/app/widget/timelinewidget/undo/timelineundoripple.cpp index 78b377cae..d8716c2e2 100644 --- a/app/widget/timelinewidget/undo/timelineundoripple.cpp +++ b/app/widget/timelinewidget/undo/timelineundoripple.cpp @@ -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); } } }