Cannot create holes in Landscape

I have a landscape material set as masked and has a Landscape Visibility Mask node connected to it’s Opacity Mask. And it is selected as my Landscape Hole Material. The material also has Auto Grass Foliage.

When I try to make hole on the Landscape with the visibility tool, it does not create holes, instead removes the foliage from where I click.

How can I fix this?

Make sure your material blend mode is set to Masked.

Thanks a lot! In master material it was set to Masked but in material instance it wasn’t. Now it work fine!