Fallback interpolator to lerp if not enough points
This commit is contained in:
parent
357b17d55f
commit
a7b21a9890
1 changed files with 3 additions and 0 deletions
|
|
@ -159,6 +159,9 @@ void Curve::splineFill(const bool fillStatus[NumValues])
|
|||
}
|
||||
}
|
||||
|
||||
if (count < 3)
|
||||
return lerpFill(fillStatus);
|
||||
|
||||
Spline spline(x.data(), y.data(), count);
|
||||
for (unsigned i = 0; i < NumValues; ++i) {
|
||||
if (!fillStatus[i])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue