diff options
| author | Juan Linietsky | 2018-06-08 13:42:04 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2018-06-08 13:42:45 -0300 |
| commit | 9cb17d7af8c9e49bc7baee2e70144490d6548b1d (patch) | |
| tree | 83e4db9779ed6a9893732f165f984ba430f04611 /editor/animation_track_editor.cpp | |
| parent | 3aed396a30d4cbcfb4a63c14b8416dad024808b2 (diff) | |
| download | godot-9cb17d7af8c9e49bc7baee2e70144490d6548b1d.tar.gz godot-9cb17d7af8c9e49bc7baee2e70144490d6548b1d.tar.zst godot-9cb17d7af8c9e49bc7baee2e70144490d6548b1d.zip | |
Diffstat (limited to 'editor/animation_track_editor.cpp')
| -rw-r--r-- | editor/animation_track_editor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index adc9821d8..d8b90bb8d 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -643,6 +643,8 @@ void AnimationTimelineEdit::_anim_length_changed(double p_new_len) { if (editing) return; + p_new_len = MAX(0.001, p_new_len); + editing = true; *block_animation_update_ptr = true; undo_redo->create_action("Change animation length"); @@ -1059,7 +1061,7 @@ AnimationTimelineEdit::AnimationTimelineEdit() { time_icon->set_tooltip(TTR("Animation Length Time (seconds)")); len_hb->add_child(time_icon); length = memnew(EditorSpinSlider); - length->set_min(0); + length->set_min(0.001); length->set_max(3600); length->set_step(0.01); length->set_allow_greater(true); |
