Skip to content

Commit

Permalink
Replaced an assertion by an error message.
Browse files Browse the repository at this point in the history
In some not yet investigated case a node exists already in the object
manager. We need to look into that. I filed issue #630 for that.
  • Loading branch information
koschke committed Aug 15, 2023
1 parent 14cd08b commit 49febe8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Assets/SEE/Game/Evolution/EvolutionRendererAddNodes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ private void AddNode(Node graphNode)
// The game node representing the graphNode if there is any; null if there is none
Node formerGraphNode = objectManager.GetNode(graphNode, out GameObject gameNode);
Assert.IsTrue(gameNode.HasNodeRef());
Assert.IsNull(formerGraphNode);
// Assert.IsNull(formerGraphNode);
if (formerGraphNode != null )
{
Debug.LogError($"A graph node for {formerGraphNode.ID} was expected not to exist.\n");
}

Add(gameNode, layoutNode);

Expand Down

0 comments on commit 49febe8

Please sign in to comment.