Removed special check for setting DistToRoot on unattached or cleared objects.