From 4462b6b61f429fba4608f2cf06deffeb16c35c05 Mon Sep 17 00:00:00 2001 From: Derrick Melton Date: Sun, 29 Sep 2024 01:30:28 -0700 Subject: [PATCH] don't implicitly cast float to double Result is a double, so use doubles everywhere Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> --- editor/animation_track_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index 418acc911fe8..2837f8459d2d 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -4989,7 +4989,7 @@ void AnimationTrackEditor::_update_step(double p_new_step) { undo_redo->create_action(TTR("Change Animation Step")); // To ensure that the conversion results are consistent between serialization and load, the value is snapped with 0.0625 to be a rational number. // step_value must also be less than or equal to 1000 to ensure that no error accumulates due to interactions with retrieving values from inner range. - double step_value = MIN(1000.0f, Math::snapped(p_new_step, FACTOR)); + double step_value = MIN(1000.0, Math::snapped(p_new_step, FACTOR)); if (timeline->is_using_fps()) { if (step_value != 0.0) { step_value = 1.0 / step_value;