Skip to content

TileMap Terrain: preview tiles are wrong relative to the tiles that actually get placed #70825

Description

@amonroejj

Godot version

4.0.beta10

System information

Windows 10, NVIDIA GeForce GTX 1060 516.94

Issue description

Using a Kenney tilemap, I tried to make a TileMap terrain set of single-tile-width river tiles (i.e. no lakes). The terrain is made up of one corner and one straight. That corner and straight have alternatives to cover the four cardinal directions.

When placing these into the TileMap, the preview for the tiles are incorrect (the in-game tiles are correct.) For example, preview tile 1 is incorrectly shown as a lake corner but the in-game tile is correctly shown as a west-to-north river piece. Preview tile 4 is incorrectly shown as a lake south shore but the in-game tile is correctly shown as a north-to-east river piece.

terrain_bad_preview

Steps to reproduce

Try the included repro project.

Minimal reproduction project

terrain_bad_preview.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions