Reversed timeline zoom slider

Fixes #37409

(cherry picked from commit 3f23e1d600)
This commit is contained in:
janglee 2020-04-05 13:57:38 +05:30 committed by Rémi Verschelde
parent 5e45717be7
commit f10d2affb0
1 changed files with 1 additions and 1 deletions

View File

@ -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;