Fix Crop Node gizmo broken when dragging upper left corner #128815

Closed
Habib Gahbiche wants to merge 1 commits from zazizizou/blender:v4.3-fix-crop-gizmo into blender-v4.3-release

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

View File

@ -215,14 +215,14 @@ static void two_xy_to_rect(
if (is_relative) {
r_rect->xmin = nxy->fac_x1 + (offset.x / dims.x);
r_rect->xmax = nxy->fac_x2 + (offset.x / dims.x);
r_rect->ymin = nxy->fac_y2 + (offset.y / dims.y);
r_rect->ymax = nxy->fac_y1 + (offset.y / dims.y);
r_rect->ymin = nxy->fac_y1 + (offset.y / dims.y);
r_rect->ymax = nxy->fac_y2 + (offset.y / dims.y);
}
else {
r_rect->xmin = (nxy->x1 + offset.x) / dims.x;
r_rect->xmax = (nxy->x2 + offset.x) / dims.x;
r_rect->ymin = (nxy->y2 + offset.y) / dims.y;
r_rect->ymax = (nxy->y1 + offset.y) / dims.y;
r_rect->ymin = (nxy->y1 + offset.y) / dims.y;
r_rect->ymax = (nxy->y2 + offset.y) / dims.y;
}
}