There was some duplicated logic in the UI code for the view 3d header. This deduplicates the logic and moves the code to the right place.
There was some duplicated logic in the UI code for the view 3d header. This deduplicates the logic and moves the code to the right place.