Blender V4.3
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
10#include "DNA_outliner_types.h"
11
12#include "../outliner_intern.hh"
13
14#include "tree_element_bone.hh"
15
16namespace blender::ed::outliner {
17
18TreeElementBone::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
#define BLI_assert(a)
Definition BLI_assert.h:50
@ TSE_BONE
TreeElementBone(TreeElement &legacy_te, ID &armature_id, Bone &bone)
char name[64]
Definition DNA_ID.h:413