summaryrefslogtreecommitdiff
path: root/modules/opensimplex/noise_texture.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-02-08 11:53:02 +0100
committerGitHub <noreply@github.com>2021-02-08 11:53:02 +0100
commit332a33503bf6ddd25f4012a0b8caaaeb67e9b18e (patch)
tree0eb10c2fcb4e7f94a2ca16365e9d36076b94bc03 /modules/opensimplex/noise_texture.h
parent5260b6e046c244ed6376c47c7af5a0f27d934c12 (diff)
parentf7209b459b4faaae9d93bfb6ac5346eb41787f92 (diff)
Merge pull request #43952 from qarmin/cppcheck_modules
Initialize class/struct variables with default values in modules/
Diffstat (limited to 'modules/opensimplex/noise_texture.h')
-rw-r--r--modules/opensimplex/noise_texture.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/opensimplex/noise_texture.h b/modules/opensimplex/noise_texture.h
index 170275bd2e..e89479d962 100644
--- a/modules/opensimplex/noise_texture.h
+++ b/modules/opensimplex/noise_texture.h
@@ -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);