2
0
Эх сурвалжийг харах

Merge pull request #61591 from fire-forge/gt2d_get_data

[3.x] Fix `get_data()` for GradientTexture2D
Rémi Verschelde 3 жил өмнө
parent
commit
e9d3748e93

+ 1 - 1
scene/resources/texture.cpp

@@ -2021,7 +2021,7 @@ RID GradientTexture2D::get_rid() const {
 	return texture;
 	return texture;
 }
 }
 
 
-Ref<Image> GradientTexture2D::get_image() const {
+Ref<Image> GradientTexture2D::get_data() const {
 	if (!texture.is_valid()) {
 	if (!texture.is_valid()) {
 		return Ref<Image>();
 		return Ref<Image>();
 	}
 	}

+ 1 - 1
scene/resources/texture.h

@@ -716,7 +716,7 @@ public:
 
 
 	virtual RID get_rid() const;
 	virtual RID get_rid() const;
 	virtual bool has_alpha() const { return true; }
 	virtual bool has_alpha() const { return true; }
-	virtual Ref<Image> get_image() const;
+	virtual Ref<Image> get_data() const;
 
 
 	GradientTexture2D();
 	GradientTexture2D();
 	virtual ~GradientTexture2D();
 	virtual ~GradientTexture2D();