1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-23 15:16:17 +00:00

GDScript: partially allow some functions on invalid scripts

+ always default initialize static variables
+ dont invalidate script when dependant scripts don't compile/resolve
This commit is contained in:
rune-scape
2024-06-02 02:07:47 -07:00
committed by rune-scape
parent 505da68b26
commit 7f7114c008
5 changed files with 101 additions and 136 deletions

View File

@@ -169,9 +169,7 @@ private:
GDScriptFunction *static_initializer = nullptr;
Error _static_init();
#ifdef TOOLS_ENABLED
void _static_default_init(); // Initialize static variables with default values based on their types.
#endif
int subclass_count = 0;
RBSet<Object *> instances;