1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-04 19:21:46 +00:00
Files
godot/modules
George Marques 22236380c0 GDScript: Initialize static variables with defaults in-editor
When the script is not marked as `@tool` the static constructor is not
called and thus the variables contain `null` by default. But since some
validated operations requires a valid value, this would cause a crash.

This commit solves this by initializing the static variables with a
default value based on their types in the editor, when they are not
marked as `@tool`, so if some `@tool` script access them, they will have
a valid typed value, avoiding the crash.
2024-05-02 15:09:22 -03:00
..
2023-10-04 19:55:11 +09:00
2024-04-10 18:27:08 +01:00
2024-04-05 12:18:00 +02:00
2024-04-10 21:19:22 +02:00
2024-03-13 09:12:50 +02:00
2024-04-30 16:26:42 +03:00
2024-04-10 23:24:27 +02:00