Blender
V4.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
9
#include "
DNA_collection_types.h
"
10
#include "
DNA_outliner_types.h
"
11
#include "
DNA_scene_types.h
"
12
13
#include "
../outliner_intern.hh
"
14
15
#include "
tree_element_layer_collection.hh
"
16
17
namespace
blender::ed::outliner
{
18
19
TreeElementLayerCollection::TreeElementLayerCollection
(
TreeElement
&legacy_te,
LayerCollection
&lc)
20
:
AbstractTreeElement
(legacy_te), lc_(lc)
21
{
22
BLI_assert
(legacy_te.
store_elem
->
type
==
TSE_LAYER_COLLECTION
);
23
legacy_te.
name
= lc_.
collection
->
id
.
name
+ 2;
24
legacy_te.
directdata
= &lc_;
25
}
26
27
}
// namespace blender::ed::outliner
BLI_assert
#define BLI_assert(a)
Definition
BLI_assert.h:50
DNA_collection_types.h
Object groups, one object can be in many groups at once.
DNA_outliner_types.h
TSE_LAYER_COLLECTION
@ TSE_LAYER_COLLECTION
Definition
DNA_outliner_types.h:106
DNA_scene_types.h
blender::ed::outliner::AbstractTreeElement
Definition
tree_element.hh:29
blender::ed::outliner::TreeElementLayerCollection::TreeElementLayerCollection
TreeElementLayerCollection(TreeElement &legacy_te, LayerCollection &lc)
Definition
tree_element_layer_collection.cc:19
blender::ed::outliner
Definition
outliner_collections.cc:42
outliner_intern.hh
Collection::id
ID id
Definition
DNA_collection_types.h:127
ID::name
char name[66]
Definition
DNA_ID.h:425
LayerCollection
Definition
DNA_layer_types.h:104
LayerCollection::collection
struct Collection * collection
Definition
DNA_layer_types.h:106
TreeStoreElem::type
short type
Definition
DNA_outliner_types.h:16
blender::ed::outliner::TreeElement
Definition
outliner_intern.hh:84
blender::ed::outliner::TreeElement::name
const char * name
Definition
outliner_intern.hh:102
blender::ed::outliner::TreeElement::store_elem
TreeStoreElem * store_elem
Definition
outliner_intern.hh:97
blender::ed::outliner::TreeElement::directdata
void * directdata
Definition
outliner_intern.hh:103
tree_element_layer_collection.hh
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0