Skip to content

Commit

Permalink
Reversed timeline zoom slider
Browse files Browse the repository at this point in the history
  • Loading branch information
Janglee123 committed Apr 7, 2020
1 parent 20edf69 commit 3f23e1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/animation_track_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3f23e1d

Please sign in to comment.