Remove landmark links when a node is deleted (and removed from the graph) #441

This commit is contained in:
matlabbe
2019-09-01 13:17:44 -04:00
parent 380fffb1d9
commit e968fd3ef4
2 changed files with 2 additions and 0 deletions

View File

@@ -2343,6 +2343,7 @@ void Memory::moveToTrash(Signature * s, bool keepLinkedToGraph, std::list<int> *
}
s->removeLinks(); // remove all links
s->removeLandmarks(); // remove all landmarks
s->setWeight(0);
s->setLabel(""); // reset label
}