diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-02-10 11:30:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-10 11:30:57 +0100 |
commit | 4ee8c5ad1f0bc58d1c76831f4f4052e0631e179c (patch) | |
tree | 778df8ef77db022d4a7e01437d5db22d17321ef0 | |
parent | 8d96a44582125bcaa28f9b0eec3efd3b98e82747 (diff) | |
parent | caab6603d187aaa1bd7e70d4fba5aace28642e0a (diff) |
Merge pull request #33903 from gururise/anim_length_edit
change step size of anim length EditSpinSlider to match min anim length
-rw-r--r-- | editor/animation_track_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index e9719f8618..2edfcced60 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -1727,7 +1727,7 @@ void AnimationTimelineEdit::update_values() { time_icon->set_tooltip(TTR("Animation length (frames)")); } else { length->set_value(animation->get_length()); - length->set_step(0.01); + length->set_step(0.001); length->set_tooltip(TTR("Animation length (seconds)")); time_icon->set_tooltip(TTR("Animation length (seconds)")); } @@ -1890,7 +1890,7 @@ AnimationTimelineEdit::AnimationTimelineEdit() { length = memnew(EditorSpinSlider); length->set_min(0.001); length->set_max(36000); - length->set_step(0.01); + length->set_step(0.001); length->set_allow_greater(true); length->set_custom_minimum_size(Vector2(70 * EDSCALE, 0)); length->set_hide_slider(true); |