1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

Fix NaN value making infinite loop inside GraphEdit's NOTIFICATION_DRAW

This commit is contained in:
stmSi
2023-01-13 12:29:29 +06:30
parent 0abd60b953
commit d1bd7539a6
2 changed files with 4 additions and 1 deletions

View File

@@ -1496,6 +1496,7 @@ 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));
if (zoom_step == p_zoom_step) {
return;
}