timeline: request caches on import

This commit is contained in:
itsmattkc
2022-09-01 11:05:30 -07:00
parent bc9f8c2e3b
commit 53def87749
2 changed files with 11 additions and 0 deletions
+2
View File
@@ -73,6 +73,8 @@ public:
virtual void Retranslate() override;
void RerequestCaches() { RequestInvalidatedFromConnected(); }
double speed() const
{
return GetStandardValue(kSpeedInput).toDouble();
@@ -401,6 +401,8 @@ void ImportTool::DropGhosts(bool insert)
}
}
std::list<ClipBlock*> imported_clips;
if (dst_graph) {
QVector<Block*> block_items(parent()->GetGhostItems().size());
@@ -471,6 +473,8 @@ void ImportTool::DropGhosts(bool insert)
Block::Link(block_items.at(j), clip);
}
}
imported_clips.push_back(clip);
} else if (track_type == Track::kSubtitle) {
Subtitle src = ghost->GetData(TimelineViewGhostItem::kAttachedFootage).value<Subtitle>();
SubtitleBlock *sub = new SubtitleBlock();
@@ -498,6 +502,11 @@ void ImportTool::DropGhosts(bool insert)
Core::instance()->undo_stack()->pushIfHasChildren(command);
while (!imported_clips.empty()) {
imported_clips.front()->RerequestCaches();
imported_clips.pop_front();
}
parent()->ClearGhosts();
dragged_footage_.clear();
}