From 6a1c1dbb4fef935115d036ce7c999d4053279495 Mon Sep 17 00:00:00 2001 From: Simon Rodriguez Date: Wed, 9 Oct 2019 10:20:11 +0200 Subject: [PATCH 1/2] This line was not present before commit 43bcb54fda4378e46a678c866242954248a63702 (Odin inspector support (#182) and causes the window to repaint every frame but only if you have a custom node editor. --- Scripts/Editor/NodeEditor.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Scripts/Editor/NodeEditor.cs b/Scripts/Editor/NodeEditor.cs index 812d3c0..13440ea 100644 --- a/Scripts/Editor/NodeEditor.cs +++ b/Scripts/Editor/NodeEditor.cs @@ -72,8 +72,6 @@ namespace XNodeEditor { GUIHelper.ClearRepaintRequest(); window.Repaint(); } -#else - window.Repaint(); #endif #if ODIN_INSPECTOR From 1b9a04017b4c0b866e13c3592e8174df682bb95c Mon Sep 17 00:00:00 2001 From: Simon Rodriguez Date: Wed, 9 Oct 2019 10:20:28 +0200 Subject: [PATCH 2/2] this action needs a repaint --- Scripts/Editor/NodeEditorAction.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Scripts/Editor/NodeEditorAction.cs b/Scripts/Editor/NodeEditorAction.cs index cf5929d..74d27a4 100644 --- a/Scripts/Editor/NodeEditorAction.cs +++ b/Scripts/Editor/NodeEditorAction.cs @@ -309,6 +309,7 @@ namespace XNodeEditor { SelectNode(node, true); } } + Repaint(); } break; case EventType.ValidateCommand: