diff options
author | Mariano Javier Suligoy <marianognu.easyrpg@gmail.com> | 2018-05-16 20:22:19 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-16 20:22:19 -0300 |
commit | ba134d44b8a5d87cf3694dd8858ec2a495bf6c11 (patch) | |
tree | fd028e5ba5135b0703b589e3592fc248d04e5f62 /scene/2d | |
parent | 41f79a6f14843406ea3c7f464a899fdc290e4bb0 (diff) | |
parent | 69ee7945d70e40c7953e9f587a8d0480db8eda86 (diff) |
Merge pull request #15909 from authenticate/tilemap_fix
TileMap Navigation Fixes
Diffstat (limited to 'scene/2d')
-rw-r--r-- | scene/2d/tile_map.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/2d/tile_map.cpp b/scene/2d/tile_map.cpp index 60766862cc..5294189c65 100644 --- a/scene/2d/tile_map.cpp +++ b/scene/2d/tile_map.cpp @@ -61,6 +61,7 @@ void TileMap::_notification(int p_what) { } pending_update = true; + _recreate_quadrants(); _update_dirty_quadrants(); RID space = get_world_2d()->get_space(); _update_quadrant_transform(); @@ -716,7 +717,7 @@ void TileMap::_make_quadrant_dirty(Map<PosKey, Quadrant>::Element *Q) { pending_update = true; if (!is_inside_tree()) return; - call_deferred("_update_dirty_quadrants"); + _update_dirty_quadrants(); } void TileMap::set_cellv(const Vector2 &p_pos, int p_tile, bool p_flip_x, bool p_flip_y, bool p_transpose) { |