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:
parent
81cac4907f
commit
cf015673d3
3 changed files with 31 additions and 13 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue