mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Revert changes to Range::set_value #65101
This commit is contained in:
parent
cd92ad0f69
commit
815484b595
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ void Range::set_value(double p_val) {
|
||||||
|
|
||||||
void Range::set_value_no_signal(double p_val) {
|
void Range::set_value_no_signal(double p_val) {
|
||||||
if (shared->step > 0) {
|
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) {
|
if (_rounded_values) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue