Only way for Obito to snap back to reality is for someone to edo Rin, and let Rin tell him that she doesn't love him. ...

But on a serious note...

If Obito REALLY wanted Rin back, why didn't he edo her? He seems crazy enough to do something like that -_-

Or why didn't he have Nagato use his reviving jutsu to bring back Rin? This jutsu was meant for Madara, but Nagato used it to revive the leaf villagers.