Clingy stages! Help!

So my 2 year old daughter is going through a stage where she will not leave my side when her dad is around. Im 10 days away from my due date. This just started two weeks ago. When hes at work she will go off and play by herself. But she wants all of my attention when hes around. And its like shes pissed off at him when he sits near me or even talks to her. Has anyone else been through this? Like with a new baby her being so clingy is gonna be so hard. When will this stop lol & like how do i get her to want her dad more again? Weve been tryinng everything.