Steps to reproduce:
- Open any Project
- Create a Terrain Game Object in a Scene, create 2 Terrain Layers in the Project Browser
- Select the Terrain Game Object and in the Inspector switch the Terrain Component's Mode to Paint Texture
- Click on the "Edit Terrain Layers" Button and add one of the Layers
- Select the added Layer and click the button again and choose "Replace Layer"
- In the Opened Object Picker double click the other Layer
- In Scene View click on the created Terrain
- Observe the Terrain Layers List
Actual results: After replacing the initial Terrain Layer and then clicking the Terrain for which the Terrain Layer was replaced, the Initial Terrain Layer is added to the Terrain Layer List, the replaced Terrain Settings are still visible in the Inspector
Expected results: When Replacing Terrain in the Terrain Layer List, new Layer is used for Painting Texture and it's settings are shown in the Inspector
Reproducible with versions: 6000.0.68f1, 6000.3.9f1, 6000.4.0b9, 6000.5.0a7
Tested on (OS): Windows 11