mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Rename Texture.get_data() to get_image()
This commit is contained in:
parent
f8442b97bf
commit
fd30c36985
31 changed files with 99 additions and 98 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue