core: resolve all footage nodes in a project regardless of their connection to root
This commit is contained in:
+3
-2
@@ -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_);
|
||||
|
||||
Reference in New Issue
Block a user