Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarley Acheson <harley>2019-01-04 17:09:11 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-04 17:22:18 +0300
commit8ca4b8dc8d13726af440925390d1207d46394d06 (patch)
treebf3b17a83f69cc93e7a1ca8bceccc23ce5e79ab1 /source/blender/editors/screen
parent81f29678dcd733ac0a210a2a9d2ac48b06e60daa (diff)
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
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r--source/blender/editors/screen/screen_ops.c6
1 files changed, 1 insertions, 5 deletions
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;