Fix Crop Node gizmo broken when dragging upper left corner #128815
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user