Excluding landscape spline wth static mesh from foliage generation

The foliage shouldn’t be spawning on top of meshes. What type of spawner are you using?
is the layer still applied below the mesh?