1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

[3.x] Make is_equal_approx have explicit float and double versions

This commit is contained in:
Aaron Franke
2021-05-20 06:26:45 -04:00
parent 65ba193ae8
commit 1154b6264c
6 changed files with 35 additions and 9 deletions

View File

@@ -461,7 +461,7 @@ void SpriteFramesEditor::_animation_select() {
if (frames->has_animation(edited_anim)) {
double value = anim_speed->get_line_edit()->get_text().to_double();
if (!Math::is_equal_approx(value, frames->get_animation_speed(edited_anim))) {
if (!Math::is_equal_approx(value, (double)frames->get_animation_speed(edited_anim))) {
_animation_fps_changed(value);
}
}