You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reproduciple in: 4.1.x (tested at least in 4.1.3 and 4.1.4)
Not reproducible in: 4.2.1, 4.2.2
System information
Godot v4.2.2.stable - macOS 14.4.1 - Vulkan (Forward+) - integrated Apple M3 Pro - Apple M3 Pro (12 Threads)
Issue description
TileMaps set_cell function does not delete tiles that use scenes collection as described in documentation:
If source_id is set to -1, atlas_coords to Vector2i(-1, -1) or alternative_tile to -1, the cell will be erased. An erased cell gets all its identifiers automatically set to their respective invalid values, namely -1, Vector2i(-1, -1) and -1.
A fix for 4.1.x is unlikely to happen sooner than a fix to that bug I'd say, if any fix is cherry picked for 4.1 at all, hard to tell without knowing what fixed the issue in the first place
Tested versions
System information
Godot v4.2.2.stable - macOS 14.4.1 - Vulkan (Forward+) - integrated Apple M3 Pro - Apple M3 Pro (12 Threads)
Issue description
TileMaps set_cell function does not delete tiles that use scenes collection as described in documentation:
If source_id is set to -1, atlas_coords to Vector2i(-1, -1) or alternative_tile to -1, the cell will be erased. An erased cell gets all its identifiers automatically set to their respective invalid values, namely -1, Vector2i(-1, -1) and -1.
Steps to reproduce
tile_map.set_cell(0, position)
tile_map.set_cell(0, position, -1, Vector2(-1, -1), -1)
tile_map.set_cell(0, position, -1, Vector2(-1, -1), 0)
tile_map.set_cell(0, position, -1, Vector2(0, 0), -1)
tile_map.set_cell(0, position, -1, Vector2(0, 0), 0)
tile_map.set_cell(0, position, 0, Vector2(-1, -1), -1)
tile_map.set_cell(0, position, 0, Vector2(-1, -1), 0)
tile_map.set_cell(0, position, 0, Vector2(0, 0), -1)
In MRP use left mouse button to add tiles and right mouse button to delete.
Minimal reproduction project (MRP)
scene_collection_mrp.zip
The text was updated successfully, but these errors were encountered: