Add persistent links
This commit is contained in:
parent
ecec82c70e
commit
e8d3f63f4d
4 changed files with 362 additions and 9 deletions
|
|
@ -1035,7 +1035,7 @@ void GraphEditorWidget::tryResolvePendingLinks() {
|
|||
}
|
||||
|
||||
if (foundOut && foundIn) {
|
||||
m_client->CreateLink(outPortId, inPortId, warppipe::LinkOptions{});
|
||||
m_client->CreateLink(outPortId, inPortId, warppipe::LinkOptions{.linger = true});
|
||||
} else {
|
||||
remaining.push_back(pending);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -186,7 +186,7 @@ bool PresetManager::loadPreset(const QString &path, warppipe::Client *client,
|
|||
std::string inPort = route["in_port"].toString().toStdString();
|
||||
|
||||
client->CreateLinkByName(outNode, outPort, inNode, inPort,
|
||||
warppipe::LinkOptions{});
|
||||
warppipe::LinkOptions{.linger = true});
|
||||
}
|
||||
|
||||
model->refreshFromClient();
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ void WarpGraphModel::addConnection(
|
|||
warppipe::PortId outPortId = outIt->second.outputPorts[outIdx].id;
|
||||
warppipe::PortId inPortId = inIt->second.inputPorts[inIdx].id;
|
||||
|
||||
auto result = m_client->CreateLink(outPortId, inPortId, warppipe::LinkOptions{});
|
||||
auto result = m_client->CreateLink(outPortId, inPortId, warppipe::LinkOptions{.linger = true});
|
||||
if (!result.ok()) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue