diff --git a/source/blender/editors/space_node/node_gizmo.cc b/source/blender/editors/space_node/node_gizmo.cc index 6b5fed000e0..72224edde07 100644 --- a/source/blender/editors/space_node/node_gizmo.cc +++ b/source/blender/editors/space_node/node_gizmo.cc @@ -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; } }