Core: Replace C math headers with C++ equivalents
- Minor restructuring to ensure `math_funcs.h` is the central point for math functions
This commit is contained in:
@ -2428,8 +2428,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user