Merge pull request #104386 from Repiteo/core/cpp-math

Core: Replace C math headers with C++ equivalents
This commit is contained in:
Thaddeus Crews
2025-04-27 19:21:22 -05:00
101 changed files with 414 additions and 498 deletions

View File

@ -2430,8 +2430,8 @@ float GraphEdit::get_zoom() const {
}
void GraphEdit::set_zoom_step(float p_zoom_step) {
p_zoom_step = abs(p_zoom_step);
ERR_FAIL_COND(!isfinite(p_zoom_step));
p_zoom_step = std::abs(p_zoom_step);
ERR_FAIL_COND(!std::isfinite(p_zoom_step));
if (zoom_step == p_zoom_step) {
return;
}