Blender V4.3
tree_element_id_metaball.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_listBase.h"
10#include "DNA_meta_types.h"
11#include "DNA_outliner_types.h"
12
13#include "../outliner_intern.hh"
14
16
17namespace blender::ed::outliner {
18
23
24void TreeElementIDMetaBall::expand(SpaceOutliner & /*space_outliner*/) const
25{
26 expand_animation_data(metaball_.adt);
27
28 expand_materials();
29}
30
31void TreeElementIDMetaBall::expand_materials() const
32{
33 for (int a = 0; a < metaball_.totcol; a++) {
35 reinterpret_cast<ID *>(metaball_.mat[a]),
36 nullptr,
39 a);
40 }
41}
42
43} // namespace blender::ed::outliner
These structs are the foundation for all linked lists in the library system.
@ TSE_SOME_ID
TreeElement * add_element(ListBase *lb, ID *owner_id, void *create_data, TreeElement *parent, short type, short index, const bool expand=true) const
TreeElementIDMetaBall(TreeElement &legacy_te, MetaBall &metaball)
void expand_animation_data(AnimData *) const
static float metaball(PROCESS *process, float x, float y, float z)
Definition DNA_ID.h:413
struct AnimData * adt
struct Material ** mat