Blender V5.0
tree_element_id_texture.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
10#include "DNA_texture_types.h"
11
12#include "../outliner_intern.hh"
13
15
16namespace blender::ed::outliner {
17
22
23void TreeElementIDTexture::expand(SpaceOutliner & /*space_outliner*/) const
24{
25 expand_animation_data(texture_.adt);
26
27 expand_image();
28}
29
30void TreeElementIDTexture::expand_image() const
31{
33 reinterpret_cast<ID *>(texture_.ima),
34 nullptr,
37 0);
38}
39
40} // namespace blender::ed::outliner
@ 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
void expand(SpaceOutliner &) const override
TreeElementIDTexture(TreeElement &legacy_te, Tex &texture)
TreeElementID(TreeElement &legacy_te, ID &id)
void expand_animation_data(AnimData *) const
TEX_TEMPLATE DataVec texture(T, FltCoord, float=0.0f) RET
Definition DNA_ID.h:414
struct Image * ima