Merge pull request #44762 from KoBeWi/offset_is_now_point_not_offset_point

Rename offset to point in remove_point()
This commit is contained in:
Rémi Verschelde 2020-12-29 13:37:49 +01:00 committed by GitHub
commit 848f5ba05c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -57,10 +57,10 @@
<method name="remove_point">
<return type="void">
</return>
<argument index="0" name="offset" type="int">
<argument index="0" name="point" type="int">
</argument>
<description>
Removes the color at the index [code]offset[/code].
Removes the color at the index [code]point[/code].
</description>
</method>
<method name="set_color">

View file

@ -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);