Merge pull request #37602 from Janglee123/reversed-zoom-scale-animtion-player

Reversed timeline zoom slider of AnimationPlayer
This commit is contained in:
Rémi Verschelde 2020-04-10 11:55:33 +02:00 committed by GitHub
commit 8d02dadaaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;