1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-03-26 22:49:02 +08:00

!B(Node Editor Window) multi open NullPointerException

This commit is contained in:
Icarus 2019-12-09 13:42:02 +08:00
parent cf59838dd0
commit 210cb33105

View File

@ -241,11 +241,13 @@ namespace XNodeEditor {
{ {
w = CreateWindow<NodeEditorWindow>("xNode"); w = CreateWindow<NodeEditorWindow>("xNode");
} }
w.Show(true); w.Show(true);
w.Focus(); w.Focus();
w.wantsMouseMove = true; w.wantsMouseMove = true;
w.graph = graph; w.graph = graph;
NodeGraphEditor graphEditor = NodeGraphEditor.GetEditor(graph, w);
NodeEditorWindow.current.graphEditor = graphEditor;
} }
/// <summary> Repaint all open NodeEditorWindows. </summary> /// <summary> Repaint all open NodeEditorWindows. </summary>