diff options
author | Julian Eisel <julian@blender.org> | 2022-01-26 21:11:34 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-01-26 21:15:57 +0300 |
commit | 7b615ca186cab53736fe656d894814c6f92de0e3 (patch) | |
tree | 3c3285206c9ce039cd530f27dccfe2e099163c47 /source/blender/editors/space_outliner/tree/tree_element_rna.hh | |
parent | 9dc0379dc0023fe45f185dc594dbd4a2fd9fedd3 (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.hh | 1 |
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. |