You've already forked godot
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user