You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Merge pull request #33903 from gururise/anim_length_edit
change step size of anim length EditSpinSlider to match min anim length
This commit is contained in:
@@ -1727,7 +1727,7 @@ void AnimationTimelineEdit::update_values() {
|
|||||||
time_icon->set_tooltip(TTR("Animation length (frames)"));
|
time_icon->set_tooltip(TTR("Animation length (frames)"));
|
||||||
} else {
|
} else {
|
||||||
length->set_value(animation->get_length());
|
length->set_value(animation->get_length());
|
||||||
length->set_step(0.01);
|
length->set_step(0.001);
|
||||||
length->set_tooltip(TTR("Animation length (seconds)"));
|
length->set_tooltip(TTR("Animation length (seconds)"));
|
||||||
time_icon->set_tooltip(TTR("Animation length (seconds)"));
|
time_icon->set_tooltip(TTR("Animation length (seconds)"));
|
||||||
}
|
}
|
||||||
@@ -1890,7 +1890,7 @@ AnimationTimelineEdit::AnimationTimelineEdit() {
|
|||||||
length = memnew(EditorSpinSlider);
|
length = memnew(EditorSpinSlider);
|
||||||
length->set_min(0.001);
|
length->set_min(0.001);
|
||||||
length->set_max(36000);
|
length->set_max(36000);
|
||||||
length->set_step(0.01);
|
length->set_step(0.001);
|
||||||
length->set_allow_greater(true);
|
length->set_allow_greater(true);
|
||||||
length->set_custom_minimum_size(Vector2(70 * EDSCALE, 0));
|
length->set_custom_minimum_size(Vector2(70 * EDSCALE, 0));
|
||||||
length->set_hide_slider(true);
|
length->set_hide_slider(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user