diff options
author | Julian Eisel <julian@blender.org> | 2022-08-04 16:18:29 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-08-04 17:09:02 +0300 |
commit | bd909ff990afffc67ecb29ab127f609af6dfc523 (patch) | |
tree | b9f634652ff63115b5ed6ed04506b8bf1762d06d /source/blender/makesdna | |
parent | f8b5706a1ffe61ae3bdd949ad851d6e9ff3fe188 (diff) |
Outliner: Add generic label element type
No user visible changes expected.
NOTE: This is committed to the 3.3 branch as part of D15606, which we
decided should go to this release still (by Bastien, Dalai and me). That
is because these are important usability fixes/improvements to have for
the LTS release.
We have a bunch of "base" element types, just to show a label element
for grouping together other elements. There is no reason to have these
tied to a case, just have a generic label type for this. It requires a
string to display, and can display an icon too. The new element type
isn't used yet, but will be in one of the following commits. Would be
nice if the existing base elements can be replaced by this.
Part of D15606.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_outliner_types.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_outliner_types.h b/source/blender/makesdna/DNA_outliner_types.h index 4a2e3e1ab72..f7a4dbc83d5 100644 --- a/source/blender/makesdna/DNA_outliner_types.h +++ b/source/blender/makesdna/DNA_outliner_types.h @@ -114,6 +114,7 @@ typedef enum eTreeStoreElemType { TSE_GPENCIL_EFFECT = 43, TSE_LIBRARY_OVERRIDE_BASE = 44, TSE_LIBRARY_OVERRIDE = 45, + TSE_GENERIC_LABEL = 47, /* No ID */ } eTreeStoreElemType; /** Check whether given #TreeStoreElem should have a real ID in #TreeStoreElem.id member. */ @@ -129,7 +130,8 @@ typedef enum eTreeStoreElemType { TSE_RNA_PROPERTY, \ TSE_RNA_ARRAY_ELEM, \ TSE_ID_BASE, \ - TSE_GP_LAYER)) + TSE_GP_LAYER, \ + TSE_GENERIC_LABEL)) #ifdef __cplusplus } |