summaryrefslogtreecommitdiff
path: root/editor/animation_bezier_editor.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/animation_bezier_editor.h')
-rw-r--r--editor/animation_bezier_editor.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/editor/animation_bezier_editor.h b/editor/animation_bezier_editor.h
index dcb6502440..f228f66771 100644
--- a/editor/animation_bezier_editor.h
+++ b/editor/animation_bezier_editor.h
@@ -53,7 +53,7 @@ class AnimationBezierTrackEdit : public Control {
float play_position_pos = 0;
Ref<Animation> animation;
- int selected_track;
+ int selected_track = 0;
Vector<Rect2> view_rects;
@@ -98,8 +98,8 @@ class AnimationBezierTrackEdit : public Control {
bool moving_selection_attempt = false;
IntPair select_single_attempt;
bool moving_selection = false;
- int moving_selection_from_key;
- int moving_selection_from_track;
+ int moving_selection_from_key = 0;
+ int moving_selection_from_track = 0;
Vector2 moving_selection_offset;
@@ -114,7 +114,7 @@ class AnimationBezierTrackEdit : public Control {
int moving_handle_track = 0;
Vector2 moving_handle_left;
Vector2 moving_handle_right;
- int moving_handle_mode; // value from Animation::HandleMode
+ int moving_handle_mode = 0; // value from Animation::HandleMode
void _clear_selection();
void _clear_selection_for_anim(const Ref<Animation> &p_anim);
@@ -136,8 +136,8 @@ class AnimationBezierTrackEdit : public Control {
Rect2 point_rect;
Rect2 in_rect;
Rect2 out_rect;
- int track;
- int key;
+ int track = 0;
+ int key = 0;
};
Vector<EditPoint> edit_points;