Fix get_used_rect() calculation

This commit is contained in:
kobewi 2021-08-05 18:17:36 +02:00
parent dcf2a62b05
commit 665dc7805b
2 changed files with 17 additions and 11 deletions

View file

@ -213,8 +213,8 @@ private:
// Rect.
Rect2 rect_cache;
bool rect_cache_dirty = true;
Rect2 used_size_cache;
bool used_size_cache_dirty = true;
Rect2i used_rect_cache;
bool used_rect_cache_dirty = true;
// TileMap layers.
struct TileMapLayer {