Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/space_outliner/tree/tree_element.hh')
-rw-r--r--source/blender/editors/space_outliner/tree/tree_element.hh13
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);