diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-26 07:05:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-26 07:05:07 +0300 |
commit | 6be7a98906b769c1496127552b524124a0e70c5a (patch) | |
tree | 9b20ec2147c656e815adb4688045acbb5af3e074 /source/blender/makesdna/DNA_screen_types.h | |
parent | 4c75cc488a49ff9dedf9b0aa520f8688d753b987 (diff) |
PyAPI: raise error when toolbar panels use tabs
Add-ons that register panels in the toolbar can
no longer use 'bl_categories' (tabs).
Diffstat (limited to 'source/blender/makesdna/DNA_screen_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_screen_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_screen_types.h b/source/blender/makesdna/DNA_screen_types.h index 9a57f1ae37b..50bf24e0b55 100644 --- a/source/blender/makesdna/DNA_screen_types.h +++ b/source/blender/makesdna/DNA_screen_types.h @@ -477,6 +477,9 @@ enum { /* use for function args */ #define RGN_TYPE_ANY -1 +/* Region supports panel tabs (categories). */ +#define RGN_TYPE_HAS_CATEGORY_MASK (1 << RGN_TYPE_UI) + /* region alignment */ #define RGN_ALIGN_NONE 0 #define RGN_ALIGN_TOP 1 |