1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-02-04 14:24:54 +08:00

Fixed mouse propagation in custom graph editors. Now you can use buttons and other controls.

This commit is contained in:
Thor Brigsted 2020-09-08 18:43:32 +02:00
parent ae998a4e07
commit 22b3793530

View File

@ -22,6 +22,7 @@ namespace XNodeEditor {
Matrix4x4 m = GUI.matrix;
if (graph == null) return;
ValidateGraphEditor();
if (e.isMouse) graphEditor.OnGUI();
Controls();
DrawGrid(position, zoom, panOffset);
@ -30,7 +31,7 @@ namespace XNodeEditor {
DrawNodes();
DrawSelectionBox();
DrawTooltip();
graphEditor.OnGUI();
if (!e.isMouse) graphEditor.OnGUI();
// Run and reset onLateGUI
if (onLateGUI != null) {