From ebcde5e5d91916bdbc6cc0f916fc36b5d41a5aa1 Mon Sep 17 00:00:00 2001 From: taoria <445625470@qq.com> Date: Sat, 30 Jul 2022 15:51:57 +0800 Subject: [PATCH] fix: fix a bug when links changed in a graph,the corresponding runtime graph don't alter its links --- TNode/TNodeCore/Runtime/Components/RuntimeGraph.cs | 3 ++- TNode/TNodeCore/Runtime/RuntimeNode.cs | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/TNode/TNodeCore/Runtime/Components/RuntimeGraph.cs b/TNode/TNodeCore/Runtime/Components/RuntimeGraph.cs index 3457973..2727aef 100644 --- a/TNode/TNodeCore/Runtime/Components/RuntimeGraph.cs +++ b/TNode/TNodeCore/Runtime/Components/RuntimeGraph.cs @@ -19,11 +19,12 @@ namespace TNodeCore.Components{ /// /// Map of node id to runtime node /// - + [NonSerialized] public readonly Dictionary RuntimeNodes = new Dictionary(); /// /// The graph tool the current runtime graph is using /// + [NonSerialized] private GraphTool _graphTool; /// /// Inner graph tool to help with graph operations diff --git a/TNode/TNodeCore/Runtime/RuntimeNode.cs b/TNode/TNodeCore/Runtime/RuntimeNode.cs index 92b52f1..4003369 100644 --- a/TNode/TNodeCore/Runtime/RuntimeNode.cs +++ b/TNode/TNodeCore/Runtime/RuntimeNode.cs @@ -48,8 +48,6 @@ namespace TNodeCore.Runtime{ _portAccessors = RuntimeCache.RuntimeCache.Instance.CachedPropertyAccessors[_type]; - - } public List GetInputNodesId(){