summaryrefslogtreecommitdiff
path: root/editor/plugins/editor_preview_plugins.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-12-08 15:53:42 +0100
committerGitHub <noreply@github.com>2020-12-08 15:53:42 +0100
commit90bdba576af2d5f0a8ecdbef065d6ef0075bc2f2 (patch)
tree22e25092f8a56af0c467442baa763f7a2db1c7cb /editor/plugins/editor_preview_plugins.h
parentedb3686ee2379ad28d1273797db8bd9ded38ff1e (diff)
parente1811b689b6854668ca690831df8603820b68573 (diff)
Merge pull request #43742 from qarmin/editor_modules_default_values
Initialize class/struct variables with default values in platform/ and editor/
Diffstat (limited to 'editor/plugins/editor_preview_plugins.h')
-rw-r--r--editor/plugins/editor_preview_plugins.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/plugins/editor_preview_plugins.h b/editor/plugins/editor_preview_plugins.h
index 9885efc2b5..04e6be2354 100644
--- a/editor/plugins/editor_preview_plugins.h
+++ b/editor/plugins/editor_preview_plugins.h
@@ -90,7 +90,7 @@ class EditorMaterialPreviewPlugin : public EditorResourcePreviewGenerator {
RID light2;
RID light_instance2;
RID camera;
- mutable volatile bool preview_done;
+ mutable volatile bool preview_done = false;
void _preview_done(const Variant &p_udata);
@@ -134,7 +134,7 @@ class EditorMeshPreviewPlugin : public EditorResourcePreviewGenerator {
RID light2;
RID light_instance2;
RID camera;
- mutable volatile bool preview_done;
+ mutable volatile bool preview_done = false;
void _preview_done(const Variant &p_udata);
@@ -156,7 +156,7 @@ class EditorFontPreviewPlugin : public EditorResourcePreviewGenerator {
RID viewport_texture;
RID canvas;
RID canvas_item;
- mutable volatile bool preview_done;
+ mutable volatile bool preview_done = false;
void _preview_done(const Variant &p_udata);