Terrain builder is mirrored after mesh import. How to fix it?

Hi there
I recently adapted some previous pg to have a terrain builder and I came up with this solution: https://playground.babylonjs.com/#8QGENL#49 which is working fine
But when I exported and imported the same mesh into the scene, it seems that the plane vertices are mirrored after import. When I modify the terrain, the vertices are positioned in the opposite symmetric side
https://playground.babylonjs.com/#8QGENL#51
What is the solution for this?

Looks like you just need to delete the parent after the mesh is imported.
groundMesh.parent = null

1 Like