Fix TileMap quadrant canvas item position not being local

This commit is contained in:
kleonc 2024-01-05 20:13:09 +01:00
parent c8c483cf57
commit 3c25274870
1 changed files with 1 additions and 1 deletions

View File

@ -500,7 +500,7 @@ void TileMapLayer::_rendering_quadrants_update_cell(CellData &r_cell_data, SelfL
quadrant_coords = Vector2i(
coords.x > 0 ? coords.x / quad_size : (coords.x - (quad_size - 1)) / quad_size,
coords.y > 0 ? coords.y / quad_size : (coords.y - (quad_size - 1)) / quad_size);
canvas_items_position = quad_size * quadrant_coords;
canvas_items_position = tile_map_node->map_to_local(quad_size * quadrant_coords);
}
Ref<RenderingQuadrant> rendering_quadrant;