I have two adjacent train tracks, sharing a mining designation tile, with different slope profiles. In planning mode, they're both happy. (image 1)
The near track extends straight for an additional tile after the terrain begins to slope down, and for some reason it's decided that the first half-tile of that will not be elevated (even though the ground is dropping away). When I unity-build the track, it creates terrain to allow this, deforming the surrounding terrain as well. The far track, which needed the clearance of the terrain's previous grade, is not happy about this at all, and collapses. (image 2)
If I remove the near track again, you can clearly see the terrain deformation (image 3)
Adding a pillar in that space does not prevent the terrain deformation.
Save file attached.


