diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-31 22:45:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-31 22:45:26 +0300 |
commit | 995fa1f4c0b1dc746b0978033b41984a653784e4 (patch) | |
tree | 65f02fd604184a901a191d1314a3b05bfb489577 /source/blender/makesdna | |
parent | 14dee6d7a59f16761201798f85e60d09bd353750 (diff) |
UI: new tool properties space type
This currently shows panels that were in the 2.79 3D view toolbar
which are now popovers.
In some cases it's useful for these to stay open.
This commit adds a space type to do this.
Note this is currently empty in object mode.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_space_types.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index cd92418d17d..bbea3b168e3 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -131,12 +131,14 @@ typedef struct SpaceButs { View2D v2d DNA_DEPRECATED; /* deprecated, copied to region */ + /* For different kinds of property editors (exposed in the space type selector). */ + short space_subtype; + short mainb, mainbo, mainbuser; /* context tabs */ short re_align, align; /* align for panels */ short preview; /* preview is signal to refresh */ char flag; char collection_context; - char pad[2]; void *path; /* runtime */ int pathflag, dataicon; /* runtime */ @@ -215,6 +217,12 @@ typedef enum eSpaceButtons_Align { BUT_AUTO = 3, } eSpaceButtons_Align; +/* SpaceButs.flag */ +typedef enum eSpaceButtons_SubType { + SB_SUBTYPE_DATA = 0, + SB_SUBTYPE_TOOL = 1, +} eSpaceButtons_SubType; + /** \} */ /* -------------------------------------------------------------------- */ |