Blender V5.3
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
14#include "tree_display.hh"
16
17namespace blender::ed::outliner {
18
23
24void TreeElementIDTexture::expand(SpaceOutliner & /*space_outliner*/) const
25{
26 expand_animation_data(texture_.adt);
27
28 expand_image();
29}
30
31void TreeElementIDTexture::expand_image() const
32{
33 add_id_element({}, reinterpret_cast<ID *>(texture_.ima));
34}
35
36} // namespace blender::ed::outliner
TreeElement * add_id_element(const TreeElementAddParams &params, ID *id) 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
struct Image * ima
Establish and manage Outliner trees for different display modes.