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:
authorJulian Eisel <julian@blender.org>2022-01-26 21:11:34 +0300
committerJulian Eisel <julian@blender.org>2022-01-26 21:15:57 +0300
commit7b615ca186cab53736fe656d894814c6f92de0e3 (patch)
tree3c3285206c9ce039cd530f27dccfe2e099163c47 /source/blender/editors/space_outliner/tree/tree_element_rna.hh
parent9dc0379dc0023fe45f185dc594dbd4a2fd9fedd3 (diff)
Cleanup: Remove RNA data from TreeElement, get via type specific class
The `TreeElement.rnaptr` was only needed for RNA tree-elements. Now it can be gotten through the new type specific classes, e.g. `TreeElementRNAProperty.getPointerRNA()`.
Diffstat (limited to 'source/blender/editors/space_outliner/tree/tree_element_rna.hh')
-rw-r--r--source/blender/editors/space_outliner/tree/tree_element_rna.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/tree/tree_element_rna.hh b/source/blender/editors/space_outliner/tree/tree_element_rna.hh
index 8f53a8b7f31..1f107ddbf88 100644
--- a/source/blender/editors/space_outliner/tree/tree_element_rna.hh
+++ b/source/blender/editors/space_outliner/tree/tree_element_rna.hh
@@ -43,6 +43,7 @@ class TreeElementRNACommon : public AbstractTreeElement {
bool isExpandValid() const override;
bool expandPoll(const SpaceOutliner &) const override;
+ const PointerRNA &getPointerRNA() const;
/**
* If this element represents a property or is part of a property (array element), this returns
* the property. Otherwise nullptr.