Skip to content

Commit

Permalink
Merge pull request #100459 from lawnjelly/revert_range_set_value
Browse files Browse the repository at this point in the history
[3.x] Revert changes to `Range::set_value` #65101
  • Loading branch information
akien-mga authored Feb 3, 2025
2 parents 56d8204 + 815484b commit 5a50868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/range.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void Range::set_value(double p_val) {

void Range::set_value_no_signal(double p_val) {
if (shared->step > 0) {
p_val = Math::round((p_val - shared->min) / shared->step) * shared->step + shared->min;
p_val = Math::round(p_val / shared->step) * shared->step;
}

if (_rounded_values) {
Expand Down

0 comments on commit 5a50868

Please sign in to comment.