Andrew's fix for ear transform with detached camera

For #831