How to restrict texture painting to a particular texture?

I’ve created a character model that has two materials on it. The eye area has a separate material for just the eyes - the idea is that I can switch between different painted expressions this way. I’ve unwrapped the model and since the eye area and the rest of the model are using different diffuse textures, their UVs overlap. This is causing problems when I try to paint, because even though both of my materials have different texture images attached to them, when I try to paint the eyes in the eye area the part of the body with the overlapping UVs gets painted to.

How do I tell the paint brush to only paint to the eye texture when I’m painting on the eye material and the body texture when I’m paining on the body material?

Change your painting mode from Material to Single Image - it’s in the header

If I do that, I get an error saying “missing textures detected”. But both my materials have diffuse textures attached.

There should be a drop-down menu in the same menu where you can change the image you’re painting in- if you select one of the diffuse textures, you shouldn’t have errors any more