I'm having this incredibly frustrating problem. Sometimes when I paint on my texture and press Ctrl+Z for undo, it doesn't undo the paint but rather undo some other action like brush size/properties. And then further undo keeps on undoing every other action but texture paint. It's driving me insane, because I lose my whole texture because being completely unable to undo last action, also it happens very often. I'm not alone in this problem, I saw guys having this issue in discord too. But I haven't found any answer at any place yet. Is this a bug or what?
PS : selecting previous actions from Undo history doesn't work too for some weird reason, you either go way too backwards in painting, or simply don't get to previous state at all.