[gvar] Optimize unpack_deltas

This commit is contained in:
Behdad Esfahbod 2022-06-27 15:35:28 -06:00
parent 698f51464c
commit 573e77280b
1 changed files with 2 additions and 2 deletions

View File

@ -609,8 +609,8 @@ struct gvar
{
unsigned int pt_index = apply_to_all ? i : indices[i];
deltas[pt_index].flag = 1; /* this point is referenced, i.e., explicit deltas specified */
deltas[pt_index].x += x_deltas[i] * scalar;
deltas[pt_index].y += y_deltas[i] * scalar;
deltas[pt_index].x += x_deltas.arrayZ[i] * scalar;
deltas[pt_index].y += y_deltas.arrayZ[i] * scalar;
}
/* infer deltas for unreferenced points */