From af34ea6c47fc6be5ff913b52b5be0ecee5b8775b Mon Sep 17 00:00:00 2001 From: Thor Brigsted Date: Wed, 9 Sep 2020 11:53:51 +0200 Subject: [PATCH] Revert "Fixed mouse propagation in custom graph editors. Now you can use buttons and other controls." This reverts commit 22b379353016739d0d537ee3920299a00ce451f5. --- Scripts/Editor/NodeEditorGUI.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Scripts/Editor/NodeEditorGUI.cs b/Scripts/Editor/NodeEditorGUI.cs index c0b1c5b..21d6d0f 100755 --- a/Scripts/Editor/NodeEditorGUI.cs +++ b/Scripts/Editor/NodeEditorGUI.cs @@ -22,7 +22,6 @@ namespace XNodeEditor { Matrix4x4 m = GUI.matrix; if (graph == null) return; ValidateGraphEditor(); - if (e.isMouse) graphEditor.OnGUI(); Controls(); DrawGrid(position, zoom, panOffset); @@ -31,7 +30,7 @@ namespace XNodeEditor { DrawNodes(); DrawSelectionBox(); DrawTooltip(); - if (!e.isMouse) graphEditor.OnGUI(); + graphEditor.OnGUI(); // Run and reset onLateGUI if (onLateGUI != null) {