Terrain sets do not work properly with staggered isometric maps (original) (raw)

As the title says, a misalignment occurs when using the terrain brush causing the tiles to not properly conform to the expected shape while using a corner set.

Steps to reproduce the behavior:

  1. Open the isometric_grass_and_water.tmx
  2. Change the map properties to Isometric (staggered)
  3. Try to use the premade corner set with your Terrain brush.

This is what happens
image

This is what should happen
image

Tiled Version: built from master, using Qt 6.2.4

Issue appears to be related to the WangBrush::mouseMoved function, as for corner and mixed sets it tries to perform some additional logic when a staggered renderer is being used. Simply removing that logic fixes the issues with the corner set, and appears to fix the issues with a mixed set as well (with limited testing, likely requires more)