diff options
| author | janglee <merupatel123@gmail.com> | 2020-04-05 13:57:38 +0530 |
|---|---|---|
| committer | janglee <merupatel123@gmail.com> | 2020-04-07 16:14:23 +0530 |
| commit | 3f23e1d600b3bae6a0c78c141b53e6283c953dfa (patch) | |
| tree | 28c2187517039141916f30518c2f9d2004addbf8 /editor/animation_track_editor.cpp | |
| parent | 20edf69f96160fcf7c0ea2449f4daf50f572ce99 (diff) | |
| download | redot-engine-3f23e1d600b3bae6a0c78c141b53e6283c953dfa.tar.gz | |
Reversed timeline zoom slider
Fixes #37409
Diffstat (limited to 'editor/animation_track_editor.cpp')
| -rw-r--r-- | editor/animation_track_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index fb427afe24..cd3735031e 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -1402,7 +1402,7 @@ void AnimationTimelineEdit::_zoom_changed(double) { float AnimationTimelineEdit::get_zoom_scale() const { - float zv = zoom->get_value(); + float zv = zoom->get_max() - zoom->get_value(); if (zv < 1) { zv = 1.0 - zv; return Math::pow(1.0f + zv, 8.0f) * 100; |
