Blender V4.3
tree_element_id_linestyle.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_linestyle_types.h"
11#include "DNA_listBase.h"
12#include "DNA_outliner_types.h"
13#include "DNA_texture_types.h"
14
15#include "../outliner_intern.hh"
16
18
19namespace blender::ed::outliner {
20
26
27void TreeElementIDLineStyle::expand(SpaceOutliner & /*space_outliner*/) const
28{
29 expand_animation_data(linestyle_.adt);
30
31 expand_textures();
32}
33
34void TreeElementIDLineStyle::expand_textures() const
35{
36 for (int a = 0; a < MAX_MTEX; a++) {
37 if (linestyle_.mtex[a]) {
39 reinterpret_cast<ID *>((linestyle_.mtex[a])->tex),
40 nullptr,
43 a);
44 }
45 }
46}
47
48} // namespace blender::ed::outliner
ID and Library types, which are fundamental for SDNA.
These structs are the foundation for all linked lists in the library system.
@ TSE_SOME_ID
#define MAX_MTEX
Definition Stroke.h:33
TreeElement * add_element(ListBase *lb, ID *owner_id, void *create_data, TreeElement *parent, short type, short index, const bool expand=true) const
TreeElementIDLineStyle(TreeElement &legacy_te, FreestyleLineStyle &linestyle)
void expand_animation_data(AnimData *) const
FreestyleLineStyle linestyle
struct AnimData * adt
struct MTex * mtex[18]
Definition DNA_ID.h:413