diff options
author | Julian Eisel <julian@blender.org> | 2022-08-04 16:18:29 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-08-04 16:57:08 +0300 |
commit | 2a3e4d8bcd3447ca307108c95b0eeb9ee8bf7323 (patch) | |
tree | 1fd4a9ba6c5894dbe546429f14fe771607b1e637 /source/blender/makesdna | |
parent | 791bfae1d64b8969a7edbc6b020f7fba873f77ee (diff) |
Outliner: Add generic label element type
No user visible changes expected.
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 } |