From 7fdde7fd86f2448700e6473ae4bc5f8b1d4b1208 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 9 Jun 2018 17:36:28 +0200 Subject: UI: use draw_header function for popover buttons Add 'is_popover' for panel draw functions to check if they're in a popup. This puts dyntopo toggle next to the popover. --- source/blender/makesdna/DNA_screen_types.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/makesdna/DNA_screen_types.h') diff --git a/source/blender/makesdna/DNA_screen_types.h b/source/blender/makesdna/DNA_screen_types.h index 9213893ae66..91bf1bbddbd 100644 --- a/source/blender/makesdna/DNA_screen_types.h +++ b/source/blender/makesdna/DNA_screen_types.h @@ -390,6 +390,7 @@ enum { /*PNL_TABBED = (1 << 3), */ /*UNUSED*/ PNL_OVERLAP = (1 << 4), PNL_PIN = (1 << 5), + PNL_POPOVER = (1 << 6), }; /* Panel->snap - for snapping to screen edges */ -- cgit v1.2.3