diff options
Diffstat (limited to 'source/blender/editors/space_outliner/tree/tree_element.hh')
-rw-r--r-- | source/blender/editors/space_outliner/tree/tree_element.hh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/tree/tree_element.hh b/source/blender/editors/space_outliner/tree/tree_element.hh index 6f2d803ae96..c6593a517dd 100644 --- a/source/blender/editors/space_outliner/tree/tree_element.hh +++ b/source/blender/editors/space_outliner/tree/tree_element.hh @@ -50,6 +50,19 @@ class AbstractTreeElement { return true; } + TreeElement &getLegacyElement() + { + return legacy_te_; + } + + /** + * Expand this tree element if it is displayed for the first time (as identified by its + * tree-store element). + * + * Static for now to allow doing this from the legacy tree element. + */ + static void uncollapse_by_default(TreeElement *legacy_te); + friend void tree_element_expand(const AbstractTreeElement &tree_element, SpaceOutliner &space_outliner); |