Fix get_data() for GradientTexture2D
This commit is contained in:
parent
af8a02ddaf
commit
ea46f32246
2 changed files with 2 additions and 2 deletions
|
@ -2021,7 +2021,7 @@ RID GradientTexture2D::get_rid() const {
|
|||
return texture;
|
||||
}
|
||||
|
||||
Ref<Image> GradientTexture2D::get_image() const {
|
||||
Ref<Image> GradientTexture2D::get_data() const {
|
||||
if (!texture.is_valid()) {
|
||||
return Ref<Image>();
|
||||
}
|
||||
|
|
|
@ -716,7 +716,7 @@ public:
|
|||
|
||||
virtual RID get_rid() const;
|
||||
virtual bool has_alpha() const { return true; }
|
||||
virtual Ref<Image> get_image() const;
|
||||
virtual Ref<Image> get_data() const;
|
||||
|
||||
GradientTexture2D();
|
||||
virtual ~GradientTexture2D();
|
||||
|
|
Loading…
Reference in a new issue