The "Selected" view mode in the ouliner currently behaves different from the other view modes.
- It does always show the active object, even if it is not selected - which is contrary to the real selection state as seen by bpy.context.selected_objects.
- It does not show invisible objects - which tells nothing about the real selection state as seen by bpy.context.visible_objects.
Steps to reproduce:
- open attached
- note that the red cube is selected and the blue cube is active, but not selected.
All open outliner views on the right show the correct state, except the "Selected" view. The blue cube is not selected and should not be shown here.
- change the 3dview to some other layer than layer 1.
Again, all open outliner views on the right show the correct state, except the Selected view. The red cube is still selected, which can also be seen in the "Current Scene" and "All Scenes" ouliner views. It should also be shown in the "Selected" view.
This patch changes the "Selected" view mode in the outliner as follows:
- Always show all selected objects even if they are not visible.
- Don't show the active object if it is not selected.
