You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Make is_equal_approx have explicit float and double versions
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user