Blender V5.0
tree_element_id_gpencil_legacy.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_outliner_types.h"
11
12#include "BLI_listbase.h"
13
14#include "../outliner_intern.hh"
15
17
18namespace blender::ed::outliner {
19
21 : TreeElementID(legacy_te, gpd.id), gpd_(gpd)
22{
23}
24
25void TreeElementIDGPLegacy::expand(SpaceOutliner & /*space_outliner*/) const
26{
27 expand_animation_data(gpd_.adt);
28
29 expand_layers();
30}
31
32void TreeElementIDGPLegacy::expand_layers() const
33{
34 int index = 0;
37 index++;
38 }
39}
40
41} // namespace blender::ed::outliner
#define LISTBASE_FOREACH_BACKWARD(type, var, list)
@ TSE_GP_LAYER
TreeElement * add_element(ListBase *lb, ID *owner_id, void *create_data, TreeElement *parent, short type, short index, const bool expand=true) const
TreeElementIDGPLegacy(TreeElement &legacy_te, bGPdata &gpd)
TreeElementID(TreeElement &legacy_te, ID &id)
void expand_animation_data(AnimData *) const