Fix plugin breaking when handling resources

main
copygirl 3 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
{
public override bool _Handles(GodotObject obj)
=> true;
=> obj is Node;
public override int _Forward3DGuiInput(Camera3D camera, InputEvent ev)
{

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

Loading…
Cancel
Save