diff --git a/scene/gui/range.cpp b/scene/gui/range.cpp index 25b7952da1d..d3b7521c9a7 100644 --- a/scene/gui/range.cpp +++ b/scene/gui/range.cpp @@ -77,7 +77,11 @@ void Range::set_val(double p_val) { if (p_valmin) p_val=shared->min; - + + //avoid to set -0 + if (p_val == 0) + p_val = 0; + if (shared->val==p_val) return;