UI: show HUD when region overlap is disabled

This commit is contained in:
Campbell Barton 2018-06-13 09:27:40 +02:00
parent 0ab8f9c74a
commit 813a538a57
1 changed files with 3 additions and 3 deletions

View File

@ -1014,10 +1014,10 @@ static void region_overlap_fix(ScrArea *sa, ARegion *ar)
/* overlapping regions only in the following restricted cases */
bool ED_region_is_overlap(int spacetype, int regiontype)
{
if (regiontype == RGN_TYPE_HUD) {
return 1;
}
if (U.uiflag2 & USER_REGION_OVERLAP) {
if (regiontype == RGN_TYPE_HUD) {
return 1;
}
if (ELEM(spacetype, SPACE_VIEW3D, SPACE_SEQ, SPACE_IMAGE)) {
if (ELEM(regiontype, RGN_TYPE_TOOLS, RGN_TYPE_UI, RGN_TYPE_TOOL_PROPS))
return 1;