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:
parent
ae998a4e07
commit
22b3793530
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user