diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-12-08 15:53:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-08 15:53:42 +0100 |
commit | 90bdba576af2d5f0a8ecdbef065d6ef0075bc2f2 (patch) | |
tree | 22e25092f8a56af0c467442baa763f7a2db1c7cb /editor/plugins/animation_player_editor_plugin.h | |
parent | edb3686ee2379ad28d1273797db8bd9ded38ff1e (diff) | |
parent | e1811b689b6854668ca690831df8603820b68573 (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/animation_player_editor_plugin.h')
-rw-r--r-- | editor/plugins/animation_player_editor_plugin.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/editor/plugins/animation_player_editor_plugin.h b/editor/plugins/animation_player_editor_plugin.h index e11db1390b..17e554ee0d 100644 --- a/editor/plugins/animation_player_editor_plugin.h +++ b/editor/plugins/animation_player_editor_plugin.h @@ -113,9 +113,9 @@ class AnimationPlayerEditor : public VBoxContainer { int current_option; struct BlendEditor { - AcceptDialog *dialog; - Tree *tree; - OptionButton *next; + AcceptDialog *dialog = nullptr; + Tree *tree = nullptr; + OptionButton *next = nullptr; } blend_editor; @@ -131,13 +131,13 @@ class AnimationPlayerEditor : public VBoxContainer { // Onion skinning. struct { // Settings. - bool enabled; - bool past; - bool future; - int steps; - bool differences_only; - bool force_white_modulate; - bool include_gizmos; + bool enabled = false; + bool past = false; + bool future = false; + int steps = 0; + bool differences_only = false; + bool force_white_modulate = false; + bool include_gizmos = false; int get_needed_capture_count() const { // 'Differences only' needs a capture of the present. @@ -145,8 +145,8 @@ class AnimationPlayerEditor : public VBoxContainer { } // Rendering. - int64_t last_frame; - int can_overlay; + int64_t last_frame = 0; + int can_overlay = 0; Size2 capture_size; Vector<RID> captures; Vector<bool> captures_valid; |