Default terrain rendering is broken

Screenshot_20220729_170246

Seems to affect cells which to not have a defined terrain, so we use an autogenerated one.

This bug happens in both 0.47 and master with Distant Terrain enabled:

[Terrain]
distant terrain = true

terrain_bug.omwsave.zip

if I understood correctly, only border chunks (where default landscape is mixed with non-default) are affected: Screenshot_20220731_153801

Edited by Andrei Kortunov