1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-02-04 22:34: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; Matrix4x4 m = GUI.matrix;
if (graph == null) return; if (graph == null) return;
ValidateGraphEditor(); ValidateGraphEditor();
if (e.isMouse) graphEditor.OnGUI();
Controls(); Controls();
DrawGrid(position, zoom, panOffset); DrawGrid(position, zoom, panOffset);
@ -30,7 +31,7 @@ namespace XNodeEditor {
DrawNodes(); DrawNodes();
DrawSelectionBox(); DrawSelectionBox();
DrawTooltip(); DrawTooltip();
graphEditor.OnGUI(); if (!e.isMouse) graphEditor.OnGUI();
// Run and reset onLateGUI // Run and reset onLateGUI
if (onLateGUI != null) { if (onLateGUI != null) {