Mask brush problem- mask active but masked areas not visible

Hello. I was sculpting, using the mask brush regularly, and for some reason it stopped “painting” black on the mesh, showing me where I have applied the mask. I can see that the mask is working, because If I draw across a section where I’ve just masked, through to an unmasked area, only the unmasked area is affected.

I searched for an answer online, but only found references to modifiers interfering with the mask, and I don’t have any modifiers on.

The strangest thing is that this problem seems to only affect the current blend file. If I create a new file, the mask brush works fine.

Any help would be much appreciated.

Update: Although I would still like to know how to resolve this issue within the project file, I have found a way around it: Created a new blender file in sculpt mode and “appended” the object I was sculpting into the new project. I can now use the mask brush and see where it paints.