1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 09:16:01 +08:00

Removed middleman function

This commit is contained in:
Thor Brigsted 2018-10-27 19:57:13 +02:00
parent 16992c3972
commit e9c6b6f221
2 changed files with 2 additions and 8 deletions

View File

@ -15,13 +15,6 @@ namespace XNodeEditor {
public static Dictionary<XNode.NodePort, Vector2> portPositions;
public static int renaming;
/// <summary> Draws the node GUI.</summary>
/// <param name="portPositions">Port handle positions need to be returned to the NodeEditorWindow </param>
public void OnNodeGUI() {
OnHeaderGUI();
OnBodyGUI();
}
public virtual void OnHeaderGUI() {
string title = target.name;
if (renaming != 0 && Selection.Contains(target)) {

View File

@ -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()) {