From 316af6aa36285a72c368b7eafdb942604767e909 Mon Sep 17 00:00:00 2001 From: Thaddeus Crews Date: Tue, 29 Apr 2025 11:05:13 -0500 Subject: [PATCH] Editor: Allow non-finite values in `Range` Co-Authored-By: Aaron Franke --- scene/gui/range.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scene/gui/range.cpp b/scene/gui/range.cpp index 3606b299b0..dce927093f 100644 --- a/scene/gui/range.cpp +++ b/scene/gui/range.cpp @@ -135,10 +135,6 @@ void Range::set_value(double p_val) { } void Range::_set_value_no_signal(double p_val) { - if (!Math::is_finite(p_val)) { - return; - } - if (shared->step > 0) { p_val = Math::round((p_val - shared->min) / shared->step) * shared->step + shared->min; }