summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgururise <gururise@gmail.com>2019-11-25 12:30:10 -0800
committergururise <gururise@gmail.com>2019-11-25 12:30:10 -0800
commitcaab6603d187aaa1bd7e70d4fba5aace28642e0a (patch)
treeb4228547b75839354a8e47b714a1e20a671d08c1
parentb7ea22c5d203da1b592a743a4c893de25cd34408 (diff)
change step size of animation length EditSpinSlider to match minimum animation length
-rw-r--r--editor/animation_track_editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp
index 40aa9a28b2..8ff894ae32 100644
--- a/editor/animation_track_editor.cpp
+++ b/editor/animation_track_editor.cpp
@@ -1728,7 +1728,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)"));
}
@@ -1891,7 +1891,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);