Rename Image's get_rect to get_region

Also renames its parameter to from "rect" to "region".
This commit is contained in:
Micky 2022-09-18 02:19:55 +02:00
parent e6751549cf
commit ebf86c96e9
7 changed files with 12 additions and 12 deletions

View file

@ -93,7 +93,7 @@ Ref<Texture2D> EditorTexturePreviewPlugin::generate(const Ref<Resource> &p_from,
return Ref<Texture2D>();
}
img = atlas->get_rect(atex->get_region());
img = atlas->get_region(atex->get_region());
} else {
Ref<Texture2D> tex = p_from;
if (tex.is_valid()) {