This patch restores prior functionality from 2.79 and before by displaying the current grid spacing in the 3D view.
Also added was a new flag in the eUserpref_UI_Flag enum: USER_SHOW_GRIDSPACING, and a corresponding checkbox in the user preferences. I'm not sure if this is the right (or the best) way to do this, so feedback is welcome.
If I understand versioning_userdef.inc correctly, then this option is disabled by default when loading files from before 2.80 (which I believe is the more sane option.)
This legend only shows up when all of the following conditions are met:
- The "Grid Spacing" checkbox in the User Preferences (Viewport > Display) is checked.
- The 3D view is in orthographic mode.
- The 3D view is facing one of the preset cardinal axes.
- The unit system is either Metric or Imperial.
If any of the conditions are not met, the legend is not drawn.
This patch resolves T61286.