Blender V4.3
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
9#include "DNA_ID.h"
11#include "DNA_listBase.h"
12
13#include "../outliner_intern.hh"
14
16
17namespace blender::ed::outliner {
18
20 : TreeElementID(legacy_te, collection.id), collection_(collection)
21{
22}
23
25{
26 /* Don't expand for instances, creates too many elements. */
28 outliner_add_collection_recursive(&space_outliner, &collection_, &legacy_te_);
29 }
30}
31
32} // namespace blender::ed::outliner
ID and Library types, which are fundamental for SDNA.
@ ID_OB
Object groups, one object can be in many groups at once.
These structs are the foundation for all linked lists in the library system.
TreeElementIDCollection(TreeElement &legacy_te, Collection &collection)
TreeElement * outliner_add_collection_recursive(SpaceOutliner *space_outliner, Collection *collection, TreeElement *ten)