Using the ModifyLayers function with the TerrainToolType.SURFACE_PAINT TerrainAction does not work or is missing a FilterMorphOperation.LayerAdd or FilterMorphOperation.SurfacePaint.
Using the FilterMorphOperation.Add with the function leads to a crash of the Tools and any other morph operation does nothing.
This makes it currently impossible to edit the terrain surfaces with a script or tools.