From 765a603095c9927a596ea9077056d6a02b1c5941 Mon Sep 17 00:00:00 2001 From: Thor Brigsted Date: Wed, 12 Dec 2018 00:52:03 +0100 Subject: [PATCH] Fixed spelling --- Scripts/Node.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Scripts/Node.cs b/Scripts/Node.cs index 499797c..881a297 100644 --- a/Scripts/Node.cs +++ b/Scripts/Node.cs @@ -63,8 +63,9 @@ namespace XNode { /// Used during node instantiation to fix null/misconfigured graph during OnEnable/Init. Set it before instantiating a node. Will automatically be unset during OnEnable public static NodeGraph graphHotfix; + protected void OnEnable() { - if (graphHotFix != null) graph = graphHotfix; + if (graphHotfix != null) graph = graphHotfix; graphHotfix = null; UpdateStaticPorts(); Init();