summaryrefslogtreecommitdiff
path: root/editor/animation_track_editor.h
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2019-08-06 01:15:20 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2019-08-06 01:44:10 +0200
commit8b12498f8b1d034da10e9f2b2abe5158ff00eb66 (patch)
treeec685fe3bd839033ac76fe50d6378ce5cddd3839 /editor/animation_track_editor.h
parentfa35a73f0aa914ad282a0b9878ef485152521f40 (diff)
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.
Diffstat (limited to 'editor/animation_track_editor.h')
-rw-r--r--editor/animation_track_editor.h2
1 files changed, 1 insertions, 1 deletions
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();