How to reproduce:
1. Clone the repository (linked in the edit below)
2. Switch to the terrain-origin branch and create a new testing branch based on it
3. Open the Editor
4. In the SampleScene select the Terrain GameObject in the Hierarchy
5. Check if the "Perlin Heightmap" bool is enabled in the Inspector window under the Simple Height Map Updater Script
6. Enter Play mode and observe that Terrain's heightmap is successfully updated
7. Exit the Play mode, save the changes, and close the Editor
8. Commit and push the changes into the testing branch
9. Switch to terrain-origin and then back to the testing branch to pull the Terrain data from the remote
10. Open the Editor and observe the Terrain data object in the Project window
Expected results: After pulling from the remote terrain data remains the same as before switching branches
Actual results: After terrain data is pulled from the origin it becomes broken in the Editor. Uknown errors are also thrown in the Console
Reproducible with: 2019.4.37f1, 2020.3.31f1, 2021.2.17f1, 2022.1.0b13, 2022.2.0a8
Notes:
1. Perling noise-based heightmap is generated using Mathf.PerlinNoise() method
2. The issue occurs with random heightmaps as well, but it occurs less frequently
3. The issue did not occur when generating heightmap using a couple predetermined values. For instance alternating rows of 0 and 1