GDScript: Call implicit ready on base script first

It is generally expected that the base class is called before the
inherited clas. This commit implements this behavior for the implicit
ready function (`@onready` annotation) to make it consistent with the
expectations.
This commit is contained in:
George Marques
2024-04-30 11:50:10 -03:00
parent 64520fe674
commit 99b702ea3d
4 changed files with 36 additions and 10 deletions

View File

@ -365,6 +365,8 @@ class GDScriptInstance : public ScriptInstance {
SelfList<GDScriptFunctionState>::List pending_func_states;
void _call_implicit_ready_recursively(GDScript *p_script);
public:
virtual Object *get_owner() { return owner; }