Fix outliner showing objects in collections instances.

It didn't do this before for groups, and while it could be useful this leads
to terrible performance when there are many instances.
This commit is contained in:
Brecht Van Lommel
2018-05-25 13:42:20 +02:00
parent 2cc53227ab
commit 45e7d609ce

View File

@@ -813,8 +813,11 @@ static void outliner_add_id_contents(SpaceOops *soops, TreeElement *te, TreeStor
}
case ID_GR:
{
Collection *collection = (Collection *)id;
outliner_add_collection_recursive(soops, collection, te);
/* Don't expand for instances, creates too many elements. */
if (!(te->parent && te->parent->idcode == ID_OB)) {
Collection *collection = (Collection *)id;
outliner_add_collection_recursive(soops, collection, te);
}
}
default:
break;