From 4f72a07eaa08484654138ce99d57ce6f3bdf16ed Mon Sep 17 00:00:00 2001 From: kobewi Date: Mon, 28 Dec 2020 17:57:55 +0100 Subject: [PATCH] Rename offset to point in remove_point() --- doc/classes/Gradient.xml | 4 ++-- scene/resources/gradient.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/classes/Gradient.xml b/doc/classes/Gradient.xml index 4ccbdee1441..28c647a1c35 100644 --- a/doc/classes/Gradient.xml +++ b/doc/classes/Gradient.xml @@ -57,10 +57,10 @@ - + - Removes the color at the index [code]offset[/code]. + Removes the color at the index [code]point[/code]. diff --git a/scene/resources/gradient.cpp b/scene/resources/gradient.cpp index 6b41b97e45e..b14d48b0992 100644 --- a/scene/resources/gradient.cpp +++ b/scene/resources/gradient.cpp @@ -47,7 +47,7 @@ Gradient::~Gradient() { void Gradient::_bind_methods() { ClassDB::bind_method(D_METHOD("add_point", "offset", "color"), &Gradient::add_point); - ClassDB::bind_method(D_METHOD("remove_point", "offset"), &Gradient::remove_point); + ClassDB::bind_method(D_METHOD("remove_point", "point"), &Gradient::remove_point); ClassDB::bind_method(D_METHOD("set_offset", "point", "offset"), &Gradient::set_offset); ClassDB::bind_method(D_METHOD("get_offset", "point"), &Gradient::get_offset);