diff --git a/Scripts/Editor/NodeEditor.cs b/Scripts/Editor/NodeEditor.cs index 46c13bf..2de8c02 100644 --- a/Scripts/Editor/NodeEditor.cs +++ b/Scripts/Editor/NodeEditor.cs @@ -15,13 +15,6 @@ namespace XNodeEditor { public static Dictionary portPositions; public static int renaming; - /// Draws the node GUI. - /// Port handle positions need to be returned to the NodeEditorWindow - public void OnNodeGUI() { - OnHeaderGUI(); - OnBodyGUI(); - } - public virtual void OnHeaderGUI() { string title = target.name; if (renaming != 0 && Selection.Contains(target)) { diff --git a/Scripts/Editor/NodeEditorGUI.cs b/Scripts/Editor/NodeEditorGUI.cs index 70cd76e..dd74a01 100644 --- a/Scripts/Editor/NodeEditorGUI.cs +++ b/Scripts/Editor/NodeEditorGUI.cs @@ -366,7 +366,8 @@ namespace XNodeEditor { EditorGUI.BeginChangeCheck(); //Draw node contents - nodeEditor.OnNodeGUI(); + nodeEditor.OnHeaderGUI(); + nodeEditor.OnBodyGUI(); //If user changed a value, notify other scripts through onUpdateNode if (EditorGUI.EndChangeCheck()) {