mirror of
https://github.com/godotengine/godot.git
synced 2026-03-03 20:55:48 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user