core: resolve all footage nodes in a project regardless of their connection to root

This commit is contained in:
itsmattkc
2022-11-09 13:31:45 -08:00
parent 2aaa2fb87c
commit 4f21852241
+3 -2
View File
@@ -1713,10 +1713,10 @@ QString StripWindowsDriveLetter(QString s)
bool Core::ValidateFootageInLoadedProject(Project* project, const QString& project_saved_url)
{
QVector<Footage*> project_footage = project->root()->ListChildrenOfType<Footage>();
QVector<Footage*> footage_we_couldnt_validate;
foreach (Footage* footage, project_footage) {
for (Node *n : project->nodes()) {
if (Footage *footage = dynamic_cast<Footage*>(n)) {
QString footage_fn = StripWindowsDriveLetter(footage->filename());
QString project_fn = StripWindowsDriveLetter(project_saved_url);
@@ -1747,6 +1747,7 @@ bool Core::ValidateFootageInLoadedProject(Project* project, const QString& proje
footage_we_couldnt_validate.append(footage);
}
}
}
if (!footage_we_couldnt_validate.isEmpty()) {
FootageRelinkDialog frd(footage_we_couldnt_validate, main_window_);