mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
do not return zero with minus-sign within range value, fixes #3221
This commit is contained in:
@@ -77,7 +77,11 @@ void Range::set_val(double p_val) {
|
||||
|
||||
if (p_val<shared->min)
|
||||
p_val=shared->min;
|
||||
|
||||
|
||||
//avoid to set -0
|
||||
if (p_val == 0)
|
||||
p_val = 0;
|
||||
|
||||
if (shared->val==p_val)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user