diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp index 11b00df4a5d..db02c93eb37 100644 --- a/scene/resources/texture.cpp +++ b/scene/resources/texture.cpp @@ -2021,7 +2021,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 262edec5151..6fde0c13548 100644 --- a/scene/resources/texture.h +++ b/scene/resources/texture.h @@ -716,7 +716,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();