This RNA function was removed in rBc08d84748804. For understandable reasons really-- getting scene
statistics from a string displayed in the status bar is not exactly the best design. But we have
committed to not changing the RNA API too much for the 2.90 release, so we would like to keep this
functionality.
Generally it's quite easy to restore the function. A few considerations:
- In the future this should return a dedicated Statistics structure to python, so it might be best to deprecate this functionality eventually anyway.
- There is no need to remove the screen.statusbar_info property-- it really is a property of the status bar, so we can expose it there too.
- Because parts of the statistics message can be disabled in the preferences, if we did this naively we would end up with a broken API anyway. To fix this I added an override to the statistics statistics used only in this situation.
- Even in 2.83, you have to activate a view layer to fill its Statistics information, the statistics string is only valid after that. This patch does not aim to solve that.