[instancer] reference all points for gvar

If a point is not referenced and delta is not inferred, set delta to 0
This commit is contained in:
Qunxin Liu 2023-08-15 14:20:54 -07:00
parent 0aa5dafefd
commit bea26446d2
3 changed files with 14 additions and 2 deletions

View file

@ -993,8 +993,20 @@ struct tuple_delta_t
start_point = end_point + 1;
}
for (unsigned i : inferred_idxes)
indices[i] = true;
for (unsigned i = 0; i < point_count; i++)
{
/* if points are not referenced and deltas are not inferred, set to 0.
* reference all points for gvar */
if ( !indices[i])
{
if (!inferred_idxes.has (i))
{
deltas_x.arrayZ[i] = 0.f;
deltas_y.arrayZ[i] = 0.f;
}
indices[i] = true;
}
}
return true;
}