mirror of https://github.com/GNOME/gimp.git
gimp:cage-transform : fusion of two loop that didn't need to be seperate
This commit is contained in:
parent
b87e5c10b3
commit
635d1ba37d
|
@ -515,10 +515,7 @@ gimp_cage_transform_compute_destination (GimpCageConfig *config,
|
|||
{
|
||||
pos_x += coef[i] * config->cage_points[i].dest_point.x;
|
||||
pos_y += coef[i] * config->cage_points[i].dest_point.y;
|
||||
}
|
||||
|
||||
for (i = 0; i < cvn; i++)
|
||||
{
|
||||
pos_x += coef[i + cvn] * config->cage_points[i].edge_scaling_factor * config->cage_points[i].edge_normal.x;
|
||||
pos_y += coef[i + cvn] * config->cage_points[i].edge_scaling_factor * config->cage_points[i].edge_normal.y;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue