From 2a581835cab08aef79136ed7b765e25db546bba1 Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Fri, 18 Mar 2016 18:57:26 +0200 Subject: [PATCH] Fix issues with tilemap covering child nodes and old quadrants Closes #4070 --- scene/2d/tile_map.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scene/2d/tile_map.cpp b/scene/2d/tile_map.cpp index 34a67c088f3..1f16b36466d 100644 --- a/scene/2d/tile_map.cpp +++ b/scene/2d/tile_map.cpp @@ -504,6 +504,7 @@ void TileMap::_update_dirty_quadrants() { } dirty_quadrant_list.remove( dirty_quadrant_list.first() ); + quadrant_order_dirty=true; } @@ -524,6 +525,14 @@ void TileMap::_update_dirty_quadrants() { quadrant_order_dirty=false; } + for(int i=0;icast_to(); + + if (c) + VS::get_singleton()->canvas_item_raise(c->get_canvas_item()); + } + _recompute_rect_cache(); }