timeline: add options for manually caching and discarding parts of clips

This commit is contained in:
itsmattkc
2022-09-13 19:19:42 -07:00
parent 752616647c
commit d0e12ce607
5 changed files with 101 additions and 12 deletions
+1 -2
View File
@@ -503,7 +503,7 @@ void ImportTool::DropGhosts(bool insert)
Core::instance()->undo_stack()->pushIfHasChildren(command);
while (!imported_clips.empty()) {
imported_clips.front()->RerequestCaches();
imported_clips.front()->RequestInvalidatedFromConnected();
imported_clips.pop_front();
}
@@ -523,7 +523,6 @@ TimelineViewGhostItem* ImportTool::CreateGhost(const TimeRange &range, const rat
snap_points_.push_back(ghost->GetIn());
snap_points_.push_back(ghost->GetOut());
ghost->SetMode(Timeline::kMove);
parent()->AddGhost(ghost);