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:
authorCampbell Barton <ideasman42@gmail.com>2012-08-18 20:53:46 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-18 20:53:46 +0400
commit63f143a3ccf1a411951730f85efbdd84d2076a12 (patch)
tree6d5fd69566525ab88a685ecf4e82dcdb473e9f11 /source/blender/editors/space_logic
parent27b4b45543c0f7690a1978a60591a0b5c0f1adbb (diff)
use rctf struct for UI buttons and blocks, easier to read and means we can use BLI_rctf functions.
Diffstat (limited to 'source/blender/editors/space_logic')
-rw-r--r--source/blender/editors/space_logic/logic_buttons.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_logic/logic_buttons.c b/source/blender/editors/space_logic/logic_buttons.c
index 1595889f596..999a8baf34b 100644
--- a/source/blender/editors/space_logic/logic_buttons.c
+++ b/source/blender/editors/space_logic/logic_buttons.c
@@ -84,10 +84,10 @@ static int cut_links_intersect(uiLinkLine *line, float mcoords[][2], int tot)
int i, b;
rcti rectlink;
- rectlink.xmin = (int) (line->from->x1 + line->from->x2) / 2;
- rectlink.ymin = (int) (line->from->y1 + line->from->y2) / 2;
- rectlink.xmax = (int) (line->to->x1 + line->to->x2) / 2;
- rectlink.ymax = (int) (line->to->y1 + line->to->y2) / 2;
+ rectlink.xmin = (int) (line->from->rect.xmin + line->from->rect.xmax) / 2;
+ rectlink.ymin = (int) (line->from->rect.ymin + line->from->rect.ymax) / 2;
+ rectlink.xmax = (int) (line->to->rect.xmin + line->to->rect.xmax) / 2;
+ rectlink.ymax = (int) (line->to->rect.ymin + line->to->rect.ymax) / 2;
if (ui_link_bezier_points(&rectlink, coord_array, LINK_RESOL)) {
for (i=0; i<tot-1; i++)