Add footage to root folder and set labels correctly.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user