From 2595c77e8333382b16e2e76a3cabc06a59d747c0 Mon Sep 17 00:00:00 2001 From: copygirl Date: Thu, 29 Aug 2024 20:30:43 +0200 Subject: [PATCH] Fix plugin breaking when handling resources --- addons/receive-input-in-editor/ReceiveInputInEditorPlugin.cs | 2 +- addons/receive-input-in-editor/ReceiveInputInEditorPlugin.gd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/receive-input-in-editor/ReceiveInputInEditorPlugin.cs b/addons/receive-input-in-editor/ReceiveInputInEditorPlugin.cs index 400bc78..05165c1 100644 --- a/addons/receive-input-in-editor/ReceiveInputInEditorPlugin.cs +++ b/addons/receive-input-in-editor/ReceiveInputInEditorPlugin.cs @@ -4,7 +4,7 @@ public partial class ReceiveInputInEditorPlugin : EditorPlugin { public override bool _Handles(GodotObject obj) - => true; + => obj is Node; public override int _Forward3DGuiInput(Camera3D camera, InputEvent ev) { diff --git a/addons/receive-input-in-editor/ReceiveInputInEditorPlugin.gd b/addons/receive-input-in-editor/ReceiveInputInEditorPlugin.gd index 6147a2c..777ee0c 100644 --- a/addons/receive-input-in-editor/ReceiveInputInEditorPlugin.gd +++ b/addons/receive-input-in-editor/ReceiveInputInEditorPlugin.gd @@ -2,7 +2,7 @@ extends EditorPlugin func _handles(obj: Object) -> bool: - return true + return obj is Node func _forward_3d_gui_input(camera: Camera3D, event: InputEvent) -> int: var root := EditorInterface.get_edited_scene_root() as Node3D