From e2a0037b4d3d74b470ef8e979135d9fb497a085a Mon Sep 17 00:00:00 2001 From: Meng Fanye <519730356@qq.com> Date: Tue, 25 Aug 2020 15:54:23 +0800 Subject: [PATCH] fix: connections will break after InsertDuplicateNodes and restarting unity editor (#290) --- Scripts/Editor/NodeEditorAction.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Scripts/Editor/NodeEditorAction.cs b/Scripts/Editor/NodeEditorAction.cs index b112732..9bcbdc3 100644 --- a/Scripts/Editor/NodeEditorAction.cs +++ b/Scripts/Editor/NodeEditorAction.cs @@ -478,6 +478,7 @@ namespace XNodeEditor { } } } + EditorUtility.SetDirty(graph); // Select the new nodes Selection.objects = newNodes; }