From 815484b595250f7dca4652f35f55cc269d2bc472 Mon Sep 17 00:00:00 2001 From: lawnjelly Date: Mon, 16 Dec 2024 06:47:28 +0000 Subject: [PATCH] Revert changes to Range::set_value #65101 --- scene/gui/range.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/range.cpp b/scene/gui/range.cpp index 4d48cf307d6f..bf9c29055fbe 100644 --- a/scene/gui/range.cpp +++ b/scene/gui/range.cpp @@ -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) {