Blender  V3.3
tree_element_scene_objects.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #include "BKE_collection.h"
8 
9 #include "BLI_utildefines.h"
10 
11 #include "BLT_translation.h"
12 
13 #include "DNA_outliner_types.h"
14 
15 #include "../outliner_intern.hh"
16 #include "common.hh"
17 
19 
20 namespace blender::ed::outliner {
21 
23  : AbstractTreeElement(legacy_te), scene_(scene)
24 {
26  legacy_te.name = IFACE_("Objects");
27 }
28 
30 {
31  FOREACH_SCENE_OBJECT_BEGIN (&scene_, ob) {
32  outliner_add_element(&space_outliner, &legacy_te_.subtree, ob, &legacy_te_, TSE_SOME_ID, 0);
33  }
36 }
37 
38 } // namespace blender::ed::outliner
#define FOREACH_SCENE_OBJECT_END
#define FOREACH_SCENE_OBJECT_BEGIN(scene, _instance)
#define BLI_assert(a)
Definition: BLI_assert.h:46
#define IFACE_(msgid)
@ TSE_SCENE_OBJECTS_BASE
@ TSE_SOME_ID
TreeElementSceneObjectsBase(TreeElement &legacy_te, Scene &scene)
void outliner_make_object_parent_hierarchy(ListBase *lb)
Definition: common.cc:37
Scene scene
TreeElement * outliner_add_element(SpaceOutliner *space_outliner, ListBase *lb, void *idv, TreeElement *parent, short type, short index, const bool expand)
ListBase subtree
TreeStoreElem * store_elem
const char * name