summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjanglee <merupatel123@gmail.com>2020-04-05 13:57:38 +0530
committerjanglee <merupatel123@gmail.com>2020-04-07 16:14:23 +0530
commit3f23e1d600b3bae6a0c78c141b53e6283c953dfa (patch)
tree28c2187517039141916f30518c2f9d2004addbf8
parent20edf69f96160fcf7c0ea2449f4daf50f572ce99 (diff)
Reversed timeline zoom slider
Fixes #37409
-rw-r--r--editor/animation_track_editor.cpp2
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;