Fixes method definitions with extra number of arguments

This commit is contained in:
Ignacio Etcheverry
2017-08-09 13:54:55 +02:00
parent b8420cda9c
commit 78619a5866
14 changed files with 19 additions and 19 deletions

View File

@@ -83,7 +83,7 @@ Ref<Curve2D> Path2D::get_curve() const {
void Path2D::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_curve", "curve"), &Path2D::set_curve);
ClassDB::bind_method(D_METHOD("get_curve", "curve"), &Path2D::get_curve);
ClassDB::bind_method(D_METHOD("get_curve"), &Path2D::get_curve);
ClassDB::bind_method(D_METHOD("_curve_changed"), &Path2D::_curve_changed);
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "curve", PROPERTY_HINT_RESOURCE_TYPE, "Curve2D"), "set_curve", "get_curve");