Blender V5.0
tree_element_id_collection.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
10
11#include "../outliner_intern.hh"
12
14
15namespace blender::ed::outliner {
16
18 : TreeElementID(legacy_te, collection.id), collection_(collection)
19{
20}
21
23{
24 /* Don't expand for instances, creates too many elements. */
25 if (!(legacy_te_.parent && legacy_te_.parent->idcode == ID_OB)) {
26 outliner_add_collection_recursive(&space_outliner, &collection_, &legacy_te_);
27 }
28}
29
30} // namespace blender::ed::outliner
@ ID_OB
Object groups, one object can be in many groups at once.
TreeElementIDCollection(TreeElement &legacy_te, Collection &collection)
TreeElementID(TreeElement &legacy_te, ID &id)
TreeElement * outliner_add_collection_recursive(SpaceOutliner *space_outliner, Collection *collection, TreeElement *ten)