I decided to do a viewport render of an animation, realised that the relationship lines were showing, and decided to cancel the render. After that I wasn’t able to enter object mode, or edit mode. This is probably an easy fix that I’m too dense to find.
Trying to change to edit mode/object mode just makes the buttons go grey.