Browse Source

Merge pull request #15909 from authenticate/tilemap_fix

TileMap Navigation Fixes
Mariano Javier Suligoy 7 years ago
parent
commit
ba134d44b8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      scene/2d/tile_map.cpp

+ 2 - 1
scene/2d/tile_map.cpp

@@ -61,6 +61,7 @@ void TileMap::_notification(int p_what) {
 			}
 			}
 
 
 			pending_update = true;
 			pending_update = true;
+			_recreate_quadrants();
 			_update_dirty_quadrants();
 			_update_dirty_quadrants();
 			RID space = get_world_2d()->get_space();
 			RID space = get_world_2d()->get_space();
 			_update_quadrant_transform();
 			_update_quadrant_transform();
@@ -716,7 +717,7 @@ void TileMap::_make_quadrant_dirty(Map<PosKey, Quadrant>::Element *Q) {
 	pending_update = true;
 	pending_update = true;
 	if (!is_inside_tree())
 	if (!is_inside_tree())
 		return;
 		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) {
 void TileMap::set_cellv(const Vector2 &p_pos, int p_tile, bool p_flip_x, bool p_flip_y, bool p_transpose) {