瀏覽代碼

Merge pull request #31136 from Calinou/tweak-animation-editor-range-steps

Tweak range steps in the animation editor
Rémi Verschelde 6 年之前
父節點
當前提交
85b07813b0
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      editor/animation_track_editor.cpp
  2. 1 1
      editor/plugins/animation_player_editor_plugin.cpp

+ 1 - 1
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."));

+ 1 - 1
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));