diff --git a/doc/classes/Range.xml b/doc/classes/Range.xml index b91af146235..b8625a3f2da 100644 --- a/doc/classes/Range.xml +++ b/doc/classes/Range.xml @@ -60,6 +60,8 @@ + + Emitted when [member min_value], [member max_value], [member page], or [member step] change. diff --git a/scene/gui/range.cpp b/scene/gui/range.cpp index c24e62c8cb5..6fd9ab4cc49 100644 --- a/scene/gui/range.cpp +++ b/scene/gui/range.cpp @@ -266,7 +266,7 @@ void Range::_bind_methods() { ClassDB::bind_method(D_METHOD("unshare"), &Range::unshare); ADD_SIGNAL(MethodInfo("value_changed", PropertyInfo(Variant::REAL, "value"))); - ADD_SIGNAL(MethodInfo("changed")); + ADD_SIGNAL(MethodInfo("changed", PropertyInfo(Variant::REAL, "value"))); ADD_PROPERTY(PropertyInfo(Variant::REAL, "min_value"), "set_min", "get_min"); ADD_PROPERTY(PropertyInfo(Variant::REAL, "max_value"), "set_max", "get_max");