Fix plugin breaking when handling resources

main
copygirl 2 months ago
parent 397b9ac2d5
commit 2595c77e83
  1. 2
      addons/receive-input-in-editor/ReceiveInputInEditorPlugin.cs
  2. 2
      addons/receive-input-in-editor/ReceiveInputInEditorPlugin.gd

@ -4,7 +4,7 @@ public partial class ReceiveInputInEditorPlugin
: EditorPlugin : EditorPlugin
{ {
public override bool _Handles(GodotObject obj) public override bool _Handles(GodotObject obj)
=> true; => obj is Node;
public override int _Forward3DGuiInput(Camera3D camera, InputEvent ev) public override int _Forward3DGuiInput(Camera3D camera, InputEvent ev)
{ {

@ -2,7 +2,7 @@
extends EditorPlugin extends EditorPlugin
func _handles(obj: Object) -> bool: func _handles(obj: Object) -> bool:
return true return obj is Node
func _forward_3d_gui_input(camera: Camera3D, event: InputEvent) -> int: func _forward_3d_gui_input(camera: Camera3D, event: InputEvent) -> int:
var root := EditorInterface.get_edited_scene_root() as Node3D var root := EditorInterface.get_edited_scene_root() as Node3D

Loading…
Cancel
Save