From 6be7a98906b769c1496127552b524124a0e70c5a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 26 Oct 2018 15:05:07 +1100 Subject: PyAPI: raise error when toolbar panels use tabs Add-ons that register panels in the toolbar can no longer use 'bl_categories' (tabs). --- source/blender/makesdna/DNA_screen_types.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/makesdna') 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 -- cgit v1.2.3