summaryrefslogtreecommitdiff
path: root/scene/resources/particles_material.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-09-21 13:52:57 +0200
committerGitHub <noreply@github.com>2021-09-21 13:52:57 +0200
commit91960b7b81523cb545b2dfb47c235cf21dd460f3 (patch)
tree6812efcb8a4736e89e2b8a84a22bf30cfff302d1 /scene/resources/particles_material.h
parent8085affdb109123f68059e37beb2236a1f94de1a (diff)
parentdbe757102c6503eb564c9edc699c89afe63b91cd (diff)
Merge pull request #52466 from tcoxon/fix_43733_4.0
Prevent shaders from generating code before the constructor finishes.
Diffstat (limited to 'scene/resources/particles_material.h')
-rw-r--r--scene/resources/particles_material.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/particles_material.h b/scene/resources/particles_material.h
index 8ab26aff77..36bc456978 100644
--- a/scene/resources/particles_material.h
+++ b/scene/resources/particles_material.h
@@ -226,6 +226,7 @@ private:
_FORCE_INLINE_ void _queue_shader_change();
_FORCE_INLINE_ bool _is_shader_dirty() const;
+ bool is_initialized = false;
Vector3 direction;
float spread;
float flatness;