Blender
V5.0
source
blender
editors
space_outliner
tree
tree_element_bone.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_armature_types.h
"
10
#include "
DNA_outliner_types.h
"
11
12
#include "
../outliner_intern.hh
"
13
14
#include "
tree_element_bone.hh
"
15
16
namespace
blender::ed::outliner
{
17
18
TreeElementBone::TreeElementBone
(
TreeElement
&legacy_te,
ID
&
/*armature_id*/
,
Bone
&bone)
19
:
AbstractTreeElement
(legacy_te)
/*, armature_id_(armature_id)*/
, bone_(bone)
20
{
21
BLI_assert
(legacy_te.
store_elem
->
type
==
TSE_BONE
);
22
legacy_te.
name
= bone_.name;
23
legacy_te.
directdata
= &bone_;
24
}
25
26
}
// namespace blender::ed::outliner
BLI_assert
#define BLI_assert(a)
Definition
BLI_assert.h:46
DNA_armature_types.h
DNA_outliner_types.h
TSE_BONE
@ TSE_BONE
Definition
DNA_outliner_types.h:71
blender::ed::outliner::AbstractTreeElement::AbstractTreeElement
AbstractTreeElement(TreeElement &legacy_te)
Definition
tree_element.hh:103
blender::ed::outliner::TreeElementBone::TreeElementBone
TreeElementBone(TreeElement &legacy_te, ID &armature_id, Bone &bone)
Definition
tree_element_bone.cc:18
blender::ed::outliner
Definition
outliner_collections.cc:44
outliner_intern.hh
Bone
Definition
DNA_armature_types.h:67
ID
Definition
DNA_ID.h:414
TreeStoreElem::type
short type
Definition
DNA_outliner_types.h:16
blender::ed::outliner::TreeElement
Definition
outliner_intern.hh:87
blender::ed::outliner::TreeElement::name
const char * name
Definition
outliner_intern.hh:105
blender::ed::outliner::TreeElement::store_elem
TreeStoreElem * store_elem
Definition
outliner_intern.hh:100
blender::ed::outliner::TreeElement::directdata
void * directdata
Definition
outliner_intern.hh:106
tree_element_bone.hh
Generated on
for Blender by
doxygen
1.16.1