1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Initialize class/struct variables with default values in modules/

This commit is contained in:
Rafał Mikrut
2021-02-08 10:57:18 +01:00
parent 57e2822a05
commit f7209b459b
100 changed files with 533 additions and 772 deletions

View File

@@ -47,18 +47,18 @@ private:
Thread noise_thread;
bool first_time;
bool update_queued;
bool regen_queued;
bool first_time = true;
bool update_queued = false;
bool regen_queued = false;
mutable RID texture;
uint32_t flags;
uint32_t flags = 0;
Ref<OpenSimplexNoise> noise;
Vector2i size;
bool seamless;
bool as_normal_map;
float bump_strength;
Vector2i size = Vector2i(512, 512);
bool seamless = false;
bool as_normal_map = false;
float bump_strength = 8.0;
void _thread_done(const Ref<Image> &p_image);
static void _thread_function(void *p_ud);