Outliner: omit active-unselected in "Selected" view

This isn't selected, so misleading to include in selection list.
This commit is contained in:
Campbell Barton 2016-02-11 00:55:11 +11:00
parent d6eddc5f92
commit f5982f2a29
2 changed files with 2 additions and 2 deletions

View File

@ -1717,7 +1717,7 @@ void outliner_build_tree(Main *mainvar, Scene *scene, SpaceOops *soops)
else if (soops->outlinevis == SO_SELECTED) {
for (base = scene->base.first; base; base = base->next) {
if (base->lay & scene->lay) {
if (base == BASACT || (base->flag & SELECT)) {
if (base->flag & SELECT) {
ten = outliner_add_element(soops, &soops->tree, base->object, NULL, 0, 0);
ten->directdata = base;
}

View File

@ -2050,7 +2050,7 @@ static void rna_def_space_outliner(BlenderRNA *brna)
{SO_ALL_SCENES, "ALL_SCENES", 0, "All Scenes", "Display data-blocks in all scenes"},
{SO_CUR_SCENE, "CURRENT_SCENE", 0, "Current Scene", "Display data-blocks in current scene"},
{SO_VISIBLE, "VISIBLE_LAYERS", 0, "Visible Layers", "Display data-blocks in visible layers"},
{SO_SELECTED, "SELECTED", 0, "Selected", "Display data-blocks of selected objects"},
{SO_SELECTED, "SELECTED", 0, "Selected", "Display data-blocks of selected, visible objects"},
{SO_ACTIVE, "ACTIVE", 0, "Active", "Display data-blocks of active object"},
{SO_SAME_TYPE, "SAME_TYPES", 0, "Same Types",
"Display data-blocks of all objects of same type as selected object"},