Make is_equal_approx have explicit float and double versions

This commit is contained in:
Aaron Franke 2021-05-20 06:04:41 -04:00
parent 42b6602f1d
commit b5b6d3a8ec
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF
12 changed files with 72 additions and 46 deletions

View file

@ -513,7 +513,7 @@ void SpriteFramesEditor::_animation_select() {
if (frames->has_animation(edited_anim)) {
double value = anim_speed->get_line_edit()->get_text().to_float();
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);
}
}