1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 17:26:02 +08:00

Added null check

This commit is contained in:
Thor Kramer Brigsted 2017-11-27 09:46:14 +01:00
parent 43df6ef75b
commit d1d2f9766c

View File

@ -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);