Blender
V4.3
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
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:50
DNA_armature_types.h
DNA_outliner_types.h
TSE_BONE
@ TSE_BONE
Definition
DNA_outliner_types.h:71
blender::ed::outliner::AbstractTreeElement
Definition
tree_element.hh:29
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:42
outliner_intern.hh
Bone
Definition
DNA_armature_types.h:59
Bone::name
char name[64]
Definition
DNA_armature_types.h:69
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::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_bone.hh
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0