**System Information**
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.48
**Blender Version**
Broken: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: `rB3e85bb34d0d7`
Worked: (newest version of Blender that worked as expected)
**Short description of error**
Texture Painting with Paint mask enabled, using right click select, I went to deselect one face (shift Rclick), and the whole object "switched" to just one texture (the one assigned to first material).
**Exact steps for others to reproduce the error**
Sorry for I cannot attach blend file here, it's work related.
1) Have an object, let's say there are 3 cubes (same mesh, 1 object)
2) Create 3 materials, Mat1 Mat2 Mat3, assign each material to their cubes
3) Create 3 textures, Tex1 Tex2 Tex3. In material editor drag those textures to their respective materials (so you can see the texture in texture painting mode)
4) Switch to Texture Painting
5) Enable Paint mask
6) Pain something on first cube. Only Tex1 should be affected
7) Press Shift Right Click (using RClick select) to deselect one face, doesn't matter which cube
8) Notice how Tex1 is showed on every cube
8a) I cannot paint on any other cube except the one where Tex1 is actually supposed to be
9) Tab into edit mode, Tab out, it's okay now.
I searched to find similar bug posted, didn't find any, I'm sorry if this is a duplicate or if it's known issue (glanced through those).