diff options
| author | Rémi Verschelde | 2016-05-01 11:37:46 +0200 |
|---|---|---|
| committer | Rémi Verschelde | 2016-05-01 11:37:46 +0200 |
| commit | 6883325f926af425cf1db7606506f5538b7a205a (patch) | |
| tree | 4e1e35159b1b7024948c78fa28710ecd388ca882 /scene/gui/range.cpp | |
| parent | 78adbf4790a080fc02778a1a67d06dfcdf28290c (diff) | |
| download | godot-6883325f926af425cf1db7606506f5538b7a205a.tar.gz godot-6883325f926af425cf1db7606506f5538b7a205a.tar.zst godot-6883325f926af425cf1db7606506f5538b7a205a.zip | |
math: Fix rounding error for 0 in Math::round (#4495)
Thus revert the previous workaround in commit b123bc4a2a9c07fcfd27a84109960bda158b3b9d.
Fixes #3221.
Diffstat (limited to '')
| -rw-r--r-- | scene/gui/range.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/scene/gui/range.cpp b/scene/gui/range.cpp index b00fcfe42..e056c55f7 100644 --- a/scene/gui/range.cpp +++ b/scene/gui/range.cpp @@ -78,10 +78,6 @@ 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; |
