Skip to content

Commit e37e6e6

Browse files
committed
Merge pull request #105911 from Repiteo/editor/range-nonfinite
Editor: Allow non-finite values in `Range`
2 parents 3b4cf41 + 316af6a commit e37e6e6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

scene/gui/range.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,6 @@ void Range::set_value(double p_val) {
135135
}
136136

137137
void Range::_set_value_no_signal(double p_val) {
138-
if (!Math::is_finite(p_val)) {
139-
return;
140-
}
141-
142138
if (shared->step > 0) {
143139
p_val = Math::round((p_val - shared->min) / shared->step) * shared->step + shared->min;
144140
}

0 commit comments

Comments
 (0)