Blender
V4.3
source
blender
editors
space_outliner
tree
tree_element_linked_object.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
"
10
#include "
DNA_outliner_types.h
"
11
12
#include "
../outliner_intern.hh
"
13
14
#include "
tree_element_linked_object.hh
"
15
16
namespace
blender::ed::outliner
{
17
18
TreeElementLinkedObject::TreeElementLinkedObject
(
TreeElement
&legacy_te,
ID
&
id
)
19
:
AbstractTreeElement
(legacy_te)
20
{
21
BLI_assert
(legacy_te.
store_elem
->
type
==
TSE_LINKED_OB
);
22
legacy_te.
name
=
id
.name + 2;
23
legacy_te.
idcode
=
GS
(
id
.name);
24
}
25
26
}
// namespace blender::ed::outliner
BLI_assert
#define BLI_assert(a)
Definition
BLI_assert.h:50
DNA_ID.h
ID and Library types, which are fundamental for SDNA.
DNA_outliner_types.h
TSE_LINKED_OB
@ TSE_LINKED_OB
Definition
DNA_outliner_types.h:77
blender::ed::outliner::AbstractTreeElement
Definition
tree_element.hh:29
blender::ed::outliner::TreeElementLinkedObject::TreeElementLinkedObject
TreeElementLinkedObject(TreeElement &legacy_te, ID &id)
Definition
tree_element_linked_object.cc:18
GS
#define GS(x)
Definition
iris.cc:202
blender::ed::outliner
Definition
outliner_collections.cc:42
outliner_intern.hh
ID
Definition
DNA_ID.h:413
TreeStoreElem::type
short type
Definition
DNA_outliner_types.h:16
blender::ed::outliner::TreeElement
Definition
outliner_intern.hh:84
blender::ed::outliner::TreeElement::idcode
short idcode
Definition
outliner_intern.hh:100
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
tree_element_linked_object.hh
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0