You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Rename Texture.get_data() to get_image()
This commit is contained in:
@@ -341,7 +341,7 @@ void DisplayServerJavaScript::cursor_set_custom_image(const RES &p_cursor, Curso
|
||||
Rect2 atlas_rect;
|
||||
|
||||
if (texture.is_valid()) {
|
||||
image = texture->get_data();
|
||||
image = texture->get_image();
|
||||
}
|
||||
|
||||
if (!image.is_valid() && atlas_texture.is_valid()) {
|
||||
@@ -364,7 +364,7 @@ void DisplayServerJavaScript::cursor_set_custom_image(const RES &p_cursor, Curso
|
||||
ERR_FAIL_COND(texture_size.width > 256 || texture_size.height > 256);
|
||||
ERR_FAIL_COND(p_hotspot.x > texture_size.width || p_hotspot.y > texture_size.height);
|
||||
|
||||
image = texture->get_data();
|
||||
image = texture->get_image();
|
||||
|
||||
ERR_FAIL_COND(!image.is_valid());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user