From 97e18f03dbf15fc49e41a1c71cd5db6899b2673f Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Mon, 22 Jul 2019 03:43:40 -0300 Subject: Make possible to edit multiple keys in an animation again --- editor/animation_track_editor.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'editor/animation_track_editor.h') diff --git a/editor/animation_track_editor.h b/editor/animation_track_editor.h index 8dc2304a95..9e16f2faf7 100644 --- a/editor/animation_track_editor.h +++ b/editor/animation_track_editor.h @@ -246,6 +246,7 @@ public: }; class AnimationTrackKeyEdit; +class AnimationMultiTrackKeyEdit; class AnimationBezierTrackEdit; class AnimationTrackEditGroup : public Control { @@ -415,6 +416,7 @@ class AnimationTrackEditor : public VBoxContainer { void _move_selection_cancel(); AnimationTrackKeyEdit *key_edit; + AnimationMultiTrackKeyEdit *multi_key_edit; void _update_key_edit(); void _clear_key_edit(); -- cgit v1.2.3 From 8b12498f8b1d034da10e9f2b2abe5158ff00eb66 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 6 Aug 2019 01:15:20 +0200 Subject: Improve snapping in the animation editor Snapping can now be toggled temporarily by holding the Ctrl key. Toggling timeline snapping is now done with the "Snap" checkbox rather than by setting the animation's "Step" setting to 0. The timeline cursor can no longer exit the animation's boundaries if the animation's "Step" is set to 0. --- editor/animation_track_editor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/animation_track_editor.h') diff --git a/editor/animation_track_editor.h b/editor/animation_track_editor.h index 9e16f2faf7..96fd10effd 100644 --- a/editor/animation_track_editor.h +++ b/editor/animation_track_editor.h @@ -520,8 +520,8 @@ public: bool is_key_selected(int p_track, int p_key) const; bool is_selection_active() const; bool is_moving_selection() const; + bool is_snap_enabled() const; float get_moving_selection_offset() const; - bool is_snap_enabled(); float snap_time(float p_value); bool is_grouping_tracks(); -- cgit v1.2.3