Merge pull request #86847 from kleonc/tilemap-make-quadrant-canvas-item-position-local

Fix `TileMap` quadrant canvas item position not being local
This commit is contained in:
Rémi Verschelde 2024-01-08 14:52:54 +01:00
commit d8dc554241
No known key found for this signature in database
GPG Key ID: C3336907360768E1
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;