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 +}