Blender
V5.3
source
blender
editors
space_outliner
tree
tree_element_layer_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
9
#include "
DNA_collection_types.h
"
10
#include "
DNA_layer_types.h
"
11
#include "
DNA_outliner_types.h
"
12
#include "
DNA_scene_types.h
"
13
14
#include "
../outliner_intern.hh
"
15
16
#include "
tree_element_layer_collection.hh
"
17
18
namespace
blender::ed::outliner
{
19
20
TreeElementLayerCollection::TreeElementLayerCollection
(
TreeElement
&legacy_te,
LayerCollection
&lc)
21
:
AbstractTreeElement
(legacy_te), lc_(lc)
22
{
23
BLI_assert
(legacy_te.
store_elem
->
type
==
TSE_LAYER_COLLECTION
);
24
legacy_te.
name
= lc_.collection->id.name + 2;
25
legacy_te.
directdata
= &lc_;
26
}
27
28
ID
*
TreeElementLayerCollection::owner_id
(
LayerCollection
&lc)
29
{
30
return
&lc.
collection
->
id
;
31
}
32
33
}
// namespace blender::ed::outliner
DNA_collection_types.h
Object groups, one object can be in many groups at once.
DNA_layer_types.h
DNA_outliner_types.h
DNA_scene_types.h
blender::ed::outliner::AbstractTreeElement::AbstractTreeElement
AbstractTreeElement(TreeElement &legacy_te)
Definition
tree_element.hh:101
blender::ed::outliner::TreeElementLayerCollection::TreeElementLayerCollection
TreeElementLayerCollection(TreeElement &legacy_te, LayerCollection &lc)
Definition
tree_element_layer_collection.cc:20
blender::ed::outliner::TreeElementLayerCollection::owner_id
static ID * owner_id(LayerCollection &lc)
Definition
tree_element_layer_collection.cc:28
blender::ed::outliner
Definition
outliner_collections.cc:51
blender::BLI_assert
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
blender::TSE_LAYER_COLLECTION
@ TSE_LAYER_COLLECTION
Definition
DNA_outliner_types.h:89
outliner_intern.hh
blender::Collection::id
ID id
Definition
DNA_collection_types.h:182
blender::ID
Definition
DNA_ID.h:415
blender::LayerCollection
Definition
DNA_layer_types.h:214
blender::LayerCollection::collection
struct Collection * collection
Definition
DNA_layer_types.h:216
blender::TreeStoreElem::type
eTreeStoreElemType type
Definition
DNA_outliner_types.h:123
blender::ed::outliner::TreeElement
Definition
outliner_intern.hh:111
blender::ed::outliner::TreeElement::name
const char * name
Definition
outliner_intern.hh:129
blender::ed::outliner::TreeElement::store_elem
TreeStoreElem * store_elem
Definition
outliner_intern.hh:124
blender::ed::outliner::TreeElement::directdata
void * directdata
Definition
outliner_intern.hh:130
tree_element_layer_collection.hh
Generated on
for Blender by
doxygen
1.18.0