Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <eiseljulian@gmail.com>2019-09-01 14:54:17 +0300
committerJulian Eisel <eiseljulian@gmail.com>2019-09-01 14:55:36 +0300
commitbee91a5a5a7d3025d43d4c5913adc8601f1cd1b1 (patch)
tree28ac0a8bb6002bbace36e77cb44ac8419ade9767 /source/blender/makesdna
parente859086b18e0ad148f1ec58224ca7ac5e303526d (diff)
Remove 'HIDDEN' panel flag, use existing convention
Existing convention is to register the panels for a header, which means they're not drawn by default anyway.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_screen_types.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/source/blender/makesdna/DNA_screen_types.h b/source/blender/makesdna/DNA_screen_types.h
index 9c9437f8958..aab71c15e44 100644
--- a/source/blender/makesdna/DNA_screen_types.h
+++ b/source/blender/makesdna/DNA_screen_types.h
@@ -526,13 +526,10 @@ enum {
/* #define PNL_SNAP_DIST 9.0 */
-/* PanelType.flag */
-enum {
- PNL_DEFAULT_CLOSED = (1 << 0),
- PNL_NO_HEADER = (1 << 1),
- PNL_LAYOUT_VERT_BAR = (1 << 2),
- PNL_HIDDEN = (1 << 3),
-};
+/* paneltype flag */
+#define PNL_DEFAULT_CLOSED 1
+#define PNL_NO_HEADER 2
+#define PNL_LAYOUT_VERT_BAR 4
/* Fallback panel category (only for old scripts which need updating) */
#define PNL_CATEGORY_FALLBACK "Misc"