[subset-cff2] Micro-optimize blend operator
This commit is contained in:
parent
f159bf075b
commit
4167e93a15
|
@ -44,9 +44,10 @@ struct blend_arg_t : number_t
|
|||
{
|
||||
numValues = numValues_;
|
||||
valueIndex = valueIndex_;
|
||||
deltas.resize (numBlends);
|
||||
if (unlikely (!deltas.resize (numBlends)))
|
||||
return;
|
||||
for (unsigned int i = 0; i < numBlends; i++)
|
||||
deltas[i] = blends_[i];
|
||||
deltas.arrayZ[i] = blends_.arrayZ[i];
|
||||
}
|
||||
|
||||
bool blending () const { return deltas.length > 0; }
|
||||
|
|
Loading…
Reference in New Issue