Rename get_points_count() to get_point_count() internally

This commit is contained in:
VolTer
2023-01-02 16:52:05 +02:00
parent 1c5cfc4675
commit 1af833be95
5 changed files with 12 additions and 12 deletions

View File

@@ -2310,9 +2310,9 @@ void GradientTexture2D::_update() {
Ref<Image> image;
image.instantiate();
if (gradient->get_points_count() <= 1) { // No need to interpolate.
if (gradient->get_point_count() <= 1) { // No need to interpolate.
image->initialize_data(width, height, false, (use_hdr) ? Image::FORMAT_RGBAF : Image::FORMAT_RGBA8);
image->fill((gradient->get_points_count() == 1) ? gradient->get_color(0) : Color(0, 0, 0, 1));
image->fill((gradient->get_point_count() == 1) ? gradient->get_color(0) : Color(0, 0, 0, 1));
} else {
if (use_hdr) {
image->initialize_data(width, height, false, Image::FORMAT_RGBAF);