Dragging nodes into built-in scripts causes error: "Can't drop nodes because script 'xxxx::xxxxxxx' does not inherit Node" #81294
Closed
Description
opened on Sep 4, 2023
Godot version
v4.2.dev3.mono.official [013e8e3]
System information
Godot v4.2.dev3.mono - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3050 Ti Laptop GPU (NVIDIA; 31.0.15.3598) - AMD Ryzen 7 5800H with Radeon Graphics (16 Threads)
Issue description
When creating and attaching a built-in script to any type of node, trying to drag nodes from the scene-tree results in an error that appears at the bottom-right of the editor, but not in the console window. The error states:
Can't drop nodes because script 'xxxxxxxx::xxxxxxx' does not inherit Node.
Even though the script clearly extends Node or any other type.
Steps to reproduce
- Create and add any node type to the scene tree.
- Attach a new script, choose Built-in from the dialog.
- Save the scene first, as at the time of writing, Godot suffers from a bug that causes it to crash if the scene was not saved first.
- Try dragging or even ctrl-dragging a node to the script.
- Observe the error appear at the bottom-right in a yellow-accent pop-up.
- Nod and confirm that the bug exists.
Minimal reproduction project
can't drag nodes into built-in scripts.zip
Loose files in the archive. Extract into their own folder.
Activity