From 71cde080b6df8a300d8460365f3e818112c91732 Mon Sep 17 00:00:00 2001 From: Thor Brigsted Date: Mon, 5 Feb 2018 03:12:50 +0100 Subject: [PATCH] Revert "Performance improvement. (removed unnecessary override)" This reverts commit 51e77a227956dd043b6a6b7b19ef440a10518909. --- Scripts/Node.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Scripts/Node.cs b/Scripts/Node.cs index 0e0449f..ddc43ea 100644 --- a/Scripts/Node.cs +++ b/Scripts/Node.cs @@ -202,6 +202,10 @@ namespace XNode { foreach (NodePort port in Ports) port.ClearConnections(); } + public override int GetHashCode() { + return JsonUtility.ToJson(this).GetHashCode(); + } + /// Mark a serializable field as an input port. You can access this through [AttributeUsage(AttributeTargets.Field, AllowMultiple = true)] public class InputAttribute : Attribute {