Add footage to root folder and set labels correctly.

This commit is contained in:
Thomas Wilshaw
2021-07-28 15:14:59 +01:00
parent 5254be3fb5
commit 5b2d889a4c
+6
View File
@@ -215,6 +215,9 @@ bool LoadOTIOTask::Run()
probed_item = new Footage(footage_url);
imported_footage.insert(footage_url, probed_item);
probed_item->setParent(project_);
QFileInfo info(probed_item->filename());
probed_item->SetLabel(info.fileName());
}
Track::Reference reference;
@@ -228,6 +231,9 @@ bool LoadOTIOTask::Run()
QString output_id = reference.ToString();
Node::ConnectEdge(NodeOutput(probed_item, output_id), NodeInput(block, ClipBlock::kBufferIn));
FolderAddChild c(project_->root(), probed_item, false);
c.redo();
}
}