diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp index 894630606..c1f7d5612 100644 --- a/scene/resources/texture.cpp +++ b/scene/resources/texture.cpp @@ -2020,7 +2020,7 @@ RID GradientTexture2D::get_rid() const { return texture; } -Ref GradientTexture2D::get_image() const { +Ref GradientTexture2D::get_data() const { if (!texture.is_valid()) { return Ref(); } diff --git a/scene/resources/texture.h b/scene/resources/texture.h index 2c2494dbd..24a03ea09 100644 --- a/scene/resources/texture.h +++ b/scene/resources/texture.h @@ -714,7 +714,7 @@ public: virtual RID get_rid() const; virtual bool has_alpha() const { return true; } - virtual Ref get_image() const; + virtual Ref get_data() const; GradientTexture2D(); virtual ~GradientTexture2D();