[Bf-blender-cvs] [be012c88c52] blender2.8: Cleanup: Action zone coordinates

Dalai Felinto noreply at git.blender.org
Tue Dec 4 20:43:25 CET 2018


Commit: be012c88c52314c482754107ec05b39c835e9e0e
Author: Dalai Felinto
Date:   Tue Dec 4 17:40:28 2018 -0200
Branches: blender2.8
https://developer.blender.org/rBbe012c88c52314c482754107ec05b39c835e9e0e

Cleanup: Action zone coordinates

No functional changes, but it makes all the coordinates more consistent
(going from small to larger values). It helps debugging in the future
to be able to rule out vertex order as a culprit.

===================================================================

M	source/blender/editors/screen/area.c

===================================================================

diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 9e73fea12ce..c6af7cda220 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -778,20 +778,20 @@ static void area_azone_initialize(wmWindow *win, const bScreen *screen, ScrArea
 	     sa->totrct.xmin + (AZONESPOT - 1),
 	     sa->totrct.ymin + (AZONESPOT - 1)},
 	    /* Bottom-right. */
-	    {sa->totrct.xmax,
+	    {sa->totrct.xmax - (AZONESPOT - 1),
 	     sa->totrct.ymin,
-	     sa->totrct.xmax - (AZONESPOT - 1),
+	     sa->totrct.xmax,
 	     sa->totrct.ymin + (AZONESPOT - 1)},
 	    /* Top-left. */
 	    {sa->totrct.xmin,
-	     sa->totrct.ymax,
+	     sa->totrct.ymax - (AZONESPOT - 1),
 	     sa->totrct.xmin + (AZONESPOT - 1),
-	     sa->totrct.ymax - (AZONESPOT - 1)},
+	     sa->totrct.ymax},
 	    /* Top-right. */
-	    {sa->totrct.xmax,
-	     sa->totrct.ymax,
-	     sa->totrct.xmax - (AZONESPOT - 1),
-	     sa->totrct.ymax - (AZONESPOT - 1)}};
+	    {sa->totrct.xmax - (AZONESPOT - 1),
+	     sa->totrct.ymax - (AZONESPOT - 1),
+	     sa->totrct.xmax,
+	     sa->totrct.ymax}};
 
 	for (int i = 0; i < 4; i++) {
 		/* can't click on bottom corners on OS X, already used for resizing */



More information about the Bf-blender-cvs mailing list