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-24 14:49:21 -03:00
parent 81cac4907f
commit cf015673d3
3 changed files with 31 additions and 13 deletions
+1
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;