This PR changes the way how belowTokens and belowTiles work in FoundryVTT V12.
Instead of changing the elevation to fixed offsets, which in V12 could easily render effects in unexpected order, especially on maps that make heavy use of elevations. These functions now instead set the sortLayer property on the effect canvas Object.
This sortLayer value is used in v12 to tie-break the render order of objects within the same elevation, which now sort objects first by elevation, secondarily by sortLayer and finally by the sort property, which is named zIndex in sequencer.
This PR changes the way how
belowTokens
andbelowTiles
work in FoundryVTT V12. Instead of changing the elevation to fixed offsets, which in V12 could easily render effects in unexpected order, especially on maps that make heavy use of elevations. These functions now instead set thesortLayer
property on the effect canvas Object. ThissortLayer
value is used in v12 to tie-break the render order of objects within the same elevation, which now sort objects first byelevation
, secondarily bysortLayer
and finally by thesort
property, which is named zIndex in sequencer.