mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 09:16:01 +08:00
Added null check
This commit is contained in:
parent
43df6ef75b
commit
d1d2f9766c
@ -12,6 +12,7 @@ namespace XNodeEditor {
|
||||
private void OnGUI() {
|
||||
Event e = Event.current;
|
||||
Matrix4x4 m = GUI.matrix;
|
||||
if (graph == null) return;
|
||||
currentGraphEditor = NodeGraphEditor.GetEditor(graph.GetType());
|
||||
currentGraphEditor.target = graph;
|
||||
currentGraphEditor.serializedObject = new SerializedObject(graph);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user