Fix hidden action-zone interaction

This commit is contained in:
Campbell Barton 2018-11-07 18:13:15 +11:00
parent 484faaea4f
commit 03e5ba3183
Notes: blender-bot 2023-02-14 05:03:40 +01:00
Referenced by commit 30ed837473, Revert "Fix hidden action-zone interaction"
Referenced by issue #57729, The button icon for lateral pannel not work
1 changed files with 7 additions and 0 deletions

View File

@ -684,6 +684,13 @@ static AZone *area_actionzone_refresh_xy(ScrArea *sa, const int xy[2], const boo
AZone *az = NULL;
for (az = sa->actionzones.first; az; az = az->next) {
if (az->ar) {
if (az->ar->flag & (RGN_FLAG_HIDDEN | RGN_FLAG_TOO_SMALL)) {
continue;
}
BLI_assert(az->ar->visible);
}
if (BLI_rcti_isect_pt_v(&az->rect, xy)) {
if (az->type == AZONE_AREA) {
/* no triangle intersect but a hotspot circle based on corner */