From f10d2affb02c5f5feb55f5cb48e3b4658c873e24 Mon Sep 17 00:00:00 2001 From: janglee Date: Sun, 5 Apr 2020 13:57:38 +0530 Subject: [PATCH] Reversed timeline zoom slider Fixes #37409 (cherry picked from commit 3f23e1d600b3bae6a0c78c141b53e6283c953dfa) --- editor/animation_track_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index 896ed80ce62..5b3553d65e3 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;