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:
commit
d8dc554241
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue