GDScript: Use implicit method for @onready variables

Initialize them with the implicit method so they're not related to the
overriding of the `_ready` method of the script but instead are always
set.
This commit is contained in:
George Marques 2022-06-20 13:05:11 -03:00
parent 81cac4907f
commit cf015673d3
No known key found for this signature in database
GPG key ID: 046BD46A3201E43D
3 changed files with 31 additions and 13 deletions

View file

@ -120,6 +120,7 @@ class GDScript : public Script {
GDScriptFunction *implicit_initializer = nullptr;
GDScriptFunction *initializer = nullptr; //direct pointer to new , faster to locate
GDScriptFunction *implicit_ready = nullptr;
int subclass_count = 0;
RBSet<Object *> instances;