Fix issues with tilemap covering child nodes and old quadrants

Closes #4070
This commit is contained in:
Bojidar Marinov 2016-03-18 18:57:26 +02:00
parent b955282d46
commit 2a581835ca
1 changed files with 9 additions and 0 deletions

View File

@ -504,6 +504,7 @@ void TileMap::_update_dirty_quadrants() {
} }
dirty_quadrant_list.remove( dirty_quadrant_list.first() ); 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; quadrant_order_dirty=false;
} }
for(int i=0;i<get_child_count();i++) {
CanvasItem *c=get_child(i)->cast_to<CanvasItem>();
if (c)
VS::get_singleton()->canvas_item_raise(c->get_canvas_item());
}
_recompute_rect_cache(); _recompute_rect_cache();
} }