Adapt the curve computation to the linearRamp changes
This commit is contained in:
parent
ff94983089
commit
12cb0b5b43
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ void Curve::lerpFill(const bool fillStatus[NumValues])
|
||||||
const auto length = right - left;
|
const auto length = right - left;
|
||||||
if (length > 1) {
|
if (length > 1) {
|
||||||
const float mu = (_points[right] - _points[left]) / length;
|
const float mu = (_points[right] - _points[left]) / length;
|
||||||
linearRamp<float>(pointSpan.subspan(left + 1, length - 1), _points[left], mu);
|
linearRamp<float>(pointSpan.subspan(left, length), _points[left], mu);
|
||||||
}
|
}
|
||||||
left = right++;
|
left = right++;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue