Blender V5.0
tree_element_id_scene.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#include "DNA_scene_types.h"
11
12#include "../outliner_intern.hh"
13
15
16namespace blender::ed::outliner {
17
19 : TreeElementID(legacy_te, scene.id), scene_(scene)
20{
21}
22
23void TreeElementIDScene::expand(SpaceOutliner & /*space_outliner*/) const
24{
25 expand_view_layers();
26 expand_world();
27 expand_collections();
28 expand_objects();
29
30 expand_animation_data(scene_.adt);
31}
32
33void TreeElementIDScene::expand_view_layers() const
34{
36}
37
38void TreeElementIDScene::expand_world() const
39{
41 reinterpret_cast<ID *>(scene_.world),
42 nullptr,
45 0);
46}
47
48void TreeElementIDScene::expand_collections() const
49{
51}
52
53void TreeElementIDScene::expand_objects() const
54{
56}
57
58} // namespace blender::ed::outliner
@ TSE_SCENE_COLLECTION_BASE
@ TSE_SCENE_OBJECTS_BASE
@ TSE_R_LAYER_BASE
@ TSE_SOME_ID
TreeElement * add_element(ListBase *lb, ID *owner_id, void *create_data, TreeElement *parent, short type, short index, const bool expand=true) const
void expand(SpaceOutliner &) const override
TreeElementIDScene(TreeElement &legacy_te, Scene &scene)
TreeElementID(TreeElement &legacy_te, ID &id)
void expand_animation_data(AnimData *) const
Definition DNA_ID.h:414
struct World * world