[Bf-blender-cvs] [8ca4b8dc8d1] master: UI: fix incorrect area splitting shape in corners.
Harley Acheson
noreply at git.blender.org
Fri Jan 4 15:29:41 CET 2019
Commit: 8ca4b8dc8d13726af440925390d1207d46394d06
Author: Harley Acheson
Date: Fri Jan 4 15:09:11 2019 +0100
Branches: master
https://developer.blender.org/rB8ca4b8dc8d13726af440925390d1207d46394d06
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
===================================================================
M source/blender/editors/screen/screen_ops.c
===================================================================
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c
index 5c45234a0ff..d41bf8d937b 100644
--- a/source/blender/editors/screen/screen_ops.c
+++ b/source/blender/editors/screen/screen_ops.c
@@ -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;
More information about the Bf-blender-cvs
mailing list