diff options
author | Micky <micheledevita2@gmail.com> | 2022-09-18 02:19:55 +0200 |
---|---|---|
committer | Micky <micheledevita2@gmail.com> | 2022-11-01 23:35:48 +0100 |
commit | ebf86c96e9b648ce1f7d654032e21d4aa84b8985 (patch) | |
tree | 273fb5c2aad13abdce6571ec4a886448164a0cc4 /editor/import | |
parent | e6751549cf7247965d1744b8c464f5e901006f21 (diff) |
Rename Image's `get_rect` to `get_region`
Also renames its parameter to from "rect" to "region".
Diffstat (limited to 'editor/import')
-rw-r--r-- | editor/import/resource_importer_layered_texture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/import/resource_importer_layered_texture.cpp b/editor/import/resource_importer_layered_texture.cpp index ab15aa4fdc..9adabfb5d1 100644 --- a/editor/import/resource_importer_layered_texture.cpp +++ b/editor/import/resource_importer_layered_texture.cpp @@ -368,7 +368,7 @@ Error ResourceImporterLayeredTexture::import(const String &p_source_file, const for (int j = 0; j < hslices; j++) { int x = slice_w * j; int y = slice_h * i; - Ref<Image> slice = image->get_rect(Rect2i(x, y, slice_w, slice_h)); + Ref<Image> slice = image->get_region(Rect2i(x, y, slice_w, slice_h)); ERR_CONTINUE(slice.is_null() || slice->is_empty()); if (slice->get_width() != slice_w || slice->get_height() != slice_h) { slice->resize(slice_w, slice_h); |