Vixen
02b45cc4
csharp
public static class TerrainLayerCommands

Adding, removing and reordering an edit layer, as one undo entry each.

Read the guide page for this →

Remarks

The edit-layer stack panel's verbs — [docs/plan/31 § The terrain panel]. Every one of them changes what the composite is, so every one of them invalidates the whole terrain: reordering commutes for the sums and not for the clamp at the top of the height range, which is MoveLayer's own remark and is why none of these tries to be clever about which tiles moved.

⚠ A removed layer is held by its command, not rebuilt from a name. AddLayer makes an empty layer, so an undo built on it would put back the name and none of the ground. InsertLayer exists for this and nothing else.

Methods (14)

Used by (4)

  • SculptSessionTestsVixen.Editor.Terrain.Tests
  • TerrainLayerCommandTestsVixen.Editor.Terrain.Tests
  • TerrainModeVixen.Editor.Terrain
  • TerrainPaintModeTestsVixen.Editor.Terrain.Tests