1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00
Files
godot/main
Jason Yundt 6ca73386d1 Improve autoload inheritance error message
Autoloaded scripts should always inherit from Node. When you run a
project that tries to autoload a script which doesn’t inherit from Node,
then Godot gives an error.

Before this change, the error said “Script does not inherit a Node”.
That error message is a little bit misleading. If a class inherits a
Node, then one of its superclasses has a Node. If a class inherits
_from_ Node, then one of its superclasses is Node. This change corrects
that mistake.

Fixes #59884.

(cherry picked from commit 1cc7e7ec33)
2022-04-13 11:43:49 +02:00
..
2022-02-22 15:24:34 +03:00
2022-01-13 15:54:13 +01:00