From ea46f32246ac9bfacaa9f1964459963e4c1fea60 Mon Sep 17 00:00:00 2001 From: FireForge <67974470+fire-forge@users.noreply.github.com> Date: Tue, 31 May 2022 23:16:04 -0500 Subject: [PATCH] Fix get_data() for GradientTexture2D --- scene/resources/texture.cpp | 2 +- scene/resources/texture.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();