Fix for hidden regions becoming active

This commit is contained in:
Campbell Barton
2018-11-07 18:09:45 +11:00
parent 767a395727
commit 484faaea4f

View File

@@ -649,6 +649,9 @@ void ED_screen_set_active_region(bContext *C, wmWindow *win, const int xy[2])
if (sa) {
/* make overlap active when mouse over */
for (ar = sa->regionbase.first; ar; ar = ar->next) {
if (ar->flag & (RGN_FLAG_HIDDEN | RGN_FLAG_TOO_SMALL)) {
continue;
}
if (BLI_rcti_isect_pt_v(&ar->winrct, xy)) {
scr->active_region = ar;
break;