I know first hand how soul-destoying and sad this must be for you. We had the same problem with my daughter when she was 2. In our case it was brought on by a 7 week separation during which I was in executing our move to America from Europe.
For 11 months this was a heart-wrenching battle. Once when waking her up she actually said, 'No morning! Daddy morning!'
We did these very difficult things, and finally I was back in the circle of light!
--We were united that this was not tolerable
--We removed my husband from all baths, stories, and meal providing, gift-giving, boo boo healing, etc so that she saw me as the one that provided for her.
--If she refused me a kiss at bedtime then my husband did not allow a kiss from him
--We did not ever try to 'make her love me' like demanding a kiss, etc. I simply walked away every time she was rejecting me.
--When people said 'She's a daddy's girl', we responded, 'She's a Mommy AND Daddy's girl'
This was very very hard to carry out. I did plently of retil therapy, getting jealous, taking it out on hubby, and crying. It was a long year that year.
We brought this tough time up to her the other day, and she doesn't even remember it now--whew! I certainly do, but it is thankfully no longer an issue at all.
Good luck! Cyber hugs going out to you now....