Skip to content

Commit

Permalink
Fixing a bug that caused areas to persist if you didn't "un-search" a…
Browse files Browse the repository at this point in the history
…n area
  • Loading branch information
dbirman committed Feb 9, 2024
1 parent 15153be commit 959cfe3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Unity/Assets/Scripts/NPUltraRuntime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ public void Search(string searchStr)
foreach (OntologyNode node in _cosmosNodes)
node.SetVisibility(false, OntologyNode.OntologyNodeSide.Full);

// Hide the previous searched node
_searchedNode.SetVisibility(false, OntologyNode.OntologyNodeSide.Full);

// Make the searched area visible
_rootNode.SetVisibility(true, OntologyNode.OntologyNodeSide.Full);
_searchedNode = BrainAtlasManager.ActiveReferenceAtlas.Ontology.ID2Node(
Expand Down

0 comments on commit 959cfe3

Please sign in to comment.