summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-08-06 15:59:34 +0200
committerGitHub <noreply@github.com>2019-08-06 15:59:34 +0200
commit85b07813b0045457a8f16801e1438e23ee2e4d79 (patch)
tree7aeb944a2be9e1449b3c1391a9b6727d8aabf9ef
parent365994a6305fe7eb1e1e40bc8a780be59ab6bf59 (diff)
parent4a28657cf52f2fa0235207bfb12b1460c2d787d2 (diff)
Merge pull request #31136 from Calinou/tweak-animation-editor-range-steps
Tweak range steps in the animation editor
-rw-r--r--editor/animation_track_editor.cpp2
-rw-r--r--editor/plugins/animation_player_editor_plugin.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp
index 996cf207d3..014bb08144 100644
--- a/editor/animation_track_editor.cpp
+++ b/editor/animation_track_editor.cpp
@@ -5862,7 +5862,7 @@ AnimationTrackEditor::AnimationTrackEditor() {
step = memnew(EditorSpinSlider);
step->set_min(0);
step->set_max(1000000);
- step->set_step(0.01);
+ step->set_step(0.001);
step->set_hide_slider(true);
step->set_custom_minimum_size(Size2(100, 0) * EDSCALE);
step->set_tooltip(TTR("Animation step value."));
diff --git a/editor/plugins/animation_player_editor_plugin.cpp b/editor/plugins/animation_player_editor_plugin.cpp
index 75cbc12086..f42716c827 100644
--- a/editor/plugins/animation_player_editor_plugin.cpp
+++ b/editor/plugins/animation_player_editor_plugin.cpp
@@ -1606,7 +1606,7 @@ AnimationPlayerEditor::AnimationPlayerEditor(EditorNode *p_editor, AnimationPlay
hb->add_child(frame);
frame->set_custom_minimum_size(Size2(60, 0));
frame->set_stretch_ratio(2);
- frame->set_step(0.00001);
+ frame->set_step(0.0001);
frame->set_tooltip(TTR("Animation position (in seconds)."));
hb->add_child(memnew(VSeparator));