UI: fix incorrect area splitting shape in corners.

It was intended to be a quarter-circle, however it was oriented wrong.
Since the triangle is no longer visible and does not overlap with the
button anymore, this just makes it a square.

Differential Revision: https://developer.blender.org/D4139
This commit is contained in:
Harley Acheson
2019-01-04 15:09:11 +01:00
committed by Brecht Van Lommel
parent 81f29678dc
commit 8ca4b8dc8d

View File

@@ -688,11 +688,7 @@ static AZone *area_actionzone_refresh_xy(ScrArea *sa, const int xy[2], const boo
for (az = sa->actionzones.first; az; az = az->next) {
if (BLI_rcti_isect_pt_v(&az->rect, xy)) {
if (az->type == AZONE_AREA) {
/* no triangle intersect but a hotspot circle based on corner */
int radius_sq = SQUARE(xy[0] - az->x1) + SQUARE(xy[1] - az->y1);
if (radius_sq <= SQUARE(AZONESPOT)) {
break;
}
break;
}
else if (az->type == AZONE_REGION) {
break;