From 995fa1f4c0b1dc746b0978033b41984a653784e4 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 31 May 2018 21:45:26 +0200 Subject: 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. --- source/blender/makesdna/DNA_space_types.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'source/blender/makesdna/DNA_space_types.h') 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; + /** \} */ /* -------------------------------------------------------------------- */ -- cgit v1.2.3