You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I saw in another closed issue that this problem was fixed in develop, however this does not seem to be the case. When I delete a node, QueryDeletedLink does not return anything, and the second while loop is never executed.
Repro:
if (ax::NodeEditor::BeginDelete())
{
ax::NodeEditor::NodeId deletedNodeId;
while (ax::NodeEditor::QueryDeletedNode(&deletedNodeId))
{
if (ax::NodeEditor::AcceptDeletedItem)
{
auto it = std::find_if(nodes.begin(), nodes.end(), [deletedNodeId](Node& node) {
return node.id == deletedNodeId.Get();
});
if (it != nodes.end())
{
std::cout << "removed node: " << it->id << '\n';
nodes.erase(it);
}
}
}
ax::NodeEditor::LinkId deletedLinkId;
while (ax::NodeEditor::QueryDeletedLink(&deletedLinkId))
{
if (ax::NodeEditor::AcceptDeletedItem())
{
auto it = std::find_if(links.begin(), links.end(), [deletedLinkId](Link& link) {
returnlink.id == deletedLinkId.Get();
});
if (it != links.end())
{
std::cout << "removed link: " << it->id << '\n';
links.erase(it);
}
}
}
ax::NodeEditor::EndDelete();
}
The text was updated successfully, but these errors were encountered:
Hi, I saw in another closed issue that this problem was fixed in develop, however this does not seem to be the case. When I delete a node, QueryDeletedLink does not return anything, and the second while loop is never executed.
Repro:
The text was updated successfully, but these errors were encountered: