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
..
astcenc Merge pull request #88763 from BlueCube3310/image-is-compressed-static 2024-05-02 14:01:18 +02:00
basis_universal Merge pull request #88763 from BlueCube3310/image-is-compressed-static 2024-05-02 14:01:18 +02:00
bmp
camera
csg
cvtt Merge pull request #88763 from BlueCube3310/image-is-compressed-static 2024-05-02 14:01:18 +02:00
dds
enet
etcpak Merge pull request #88763 from BlueCube3310/image-is-compressed-static 2024-05-02 14:01:18 +02:00
fbx
freetype
gdscript GDScript: Initialize static variables with defaults in-editor 2024-05-02 15:09:22 -03:00
glslang
gltf
gridmap
hdr
interactive_music
jpg
jsonrpc
ktx
lightmapper_rd
mbedtls
meshoptimizer
minimp3
mobile_vr
mono Expose Vector* component-wise and scalar min/max to scripting 2024-05-02 13:02:40 +02:00
msdfgen
multiplayer
navigation
noise
ogg
openxr
raycast
regex
squish
svg
text_server_adv
text_server_fb
tga
theora
tinyexr
upnp
vhacd
vorbis
webp
webrtc
websocket
webxr
xatlas_unwrap
zip
modules_builders.py
register_module_types.h
SCsub