mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Merge pull request #91472 from vnen/gdscript-default-static-variables-non-tool
GDScript: Initialize static variables with defaults in-editor
This commit is contained in:
@@ -169,6 +169,9 @@ 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;
|
||||
|
||||
Reference in New Issue
Block a user