From 58d962c40471b3f513b91c1617a0771e921ecf8b Mon Sep 17 00:00:00 2001 From: Thor Brigsted Date: Tue, 11 Dec 2018 01:30:43 +0100 Subject: [PATCH] Fixed setting to null during OnEnable --- Scripts/Node.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/Node.cs b/Scripts/Node.cs index bd28553..499797c 100644 --- a/Scripts/Node.cs +++ b/Scripts/Node.cs @@ -64,7 +64,7 @@ namespace XNode { public static NodeGraph graphHotfix; protected void OnEnable() { - graph = graphHotfix; + if (graphHotFix != null) graph = graphHotfix; graphHotfix = null; UpdateStaticPorts(); Init(); @@ -313,4 +313,4 @@ namespace XNode { } } } -} \ No newline at end of file +}