Browse Source

change step size of animation length EditSpinSlider to match minimum animation length

gururise 5 năm trước cách đây
mục cha
commit
caab6603d1
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      editor/animation_track_editor.cpp

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