Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Commit 38d20a8

Browse files
committed
Fixed bug where an exception was thrown when clicking a node that implemented the optional node property editor display in the side window of the NodeEditorWindow
1 parent 093dec7 commit 38d20a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Editor/Node_Editor/NodeEditorWindow.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ private void DrawSideWindow ()
199199
mainEditorState.zoom = EditorGUILayout.Slider (new GUIContent ("Zoom", "Use the Mousewheel. Seriously."), mainEditorState.zoom, 0.6f, 2);
200200

201201
if (mainEditorState.selectedNode != null)
202-
mainEditorState.selectedNode.DrawNodePropertyEditor();
202+
if (Event.current.type != EventType.Ignore)
203+
mainEditorState.selectedNode.DrawNodePropertyEditor();
203204
}
204205

205206
#endregion

0 commit comments

Comments
 (0)