diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-09 18:05:13 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-09 18:05:13 +0100 |
commit | 3cffd70eeaf7d10f73110501d84ea2cfe9b14fdb (patch) | |
tree | d18b3f0b5c1ecfea5c1b68f82c9004940c074c7a | |
parent | 45cac42c0b511672240c1fcccecfd3cc0580edcb (diff) | |
parent | 0b5c4216c86a838e96a158c71a3f2015d47217e8 (diff) |
Merge pull request #69806 from iamtoaster/fix-69754
Fix TileMap redrawing itself twice on creation
-rw-r--r-- | scene/2d/tile_map.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/2d/tile_map.cpp b/scene/2d/tile_map.cpp index 4d4ea2b26d..ced77b26ee 100644 --- a/scene/2d/tile_map.cpp +++ b/scene/2d/tile_map.cpp @@ -995,9 +995,11 @@ void TileMap::_recompute_rect_cache() { } } + bool changed = rect_cache != r_total; + rect_cache = r_total; - item_rect_changed(); + item_rect_changed(changed); rect_cache_dirty = false; #endif |