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