diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-28 20:49:29 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-28 20:49:29 +0200 |
commit | ba25a6e93bcfff0c30b440301edaeb3e2ca73f05 (patch) | |
tree | 7970e963811ce6a40a5b74b12c6bbb650ab0cb94 /scene/2d/tile_map.h | |
parent | 67f79819e79a7cd40832baf4f7ee78907beef927 (diff) | |
parent | 407bbdda20c6b45f05f8eebd27262e0b6c950a5c (diff) |
Merge pull request #66549 from MisterMX/tilemap-get-used-rect
refactor(TileMap): Return `Rect2i` in `get_used_rect`
Diffstat (limited to 'scene/2d/tile_map.h')
-rw-r--r-- | scene/2d/tile_map.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/tile_map.h b/scene/2d/tile_map.h index b1a2118c6b..902926291d 100644 --- a/scene/2d/tile_map.h +++ b/scene/2d/tile_map.h @@ -375,7 +375,7 @@ public: Vector2i get_neighbor_cell(const Vector2i &p_coords, TileSet::CellNeighbor p_cell_neighbor) const; TypedArray<Vector2i> get_used_cells(int p_layer) const; - Rect2 get_used_rect(); // Not const because of cache + Rect2i get_used_rect(); // Not const because of cache // Override some methods of the CanvasItem class to pass the changes to the quadrants CanvasItems virtual void set_light_mask(int p_light_mask) override; |