Fix: incorrect curve parameter for catmull rom curves

This commit is contained in:
Jacques Lucke 2022-06-08 16:42:27 +02:00
parent 17971b8a5b
commit cc1cc46099
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ static Array<float> curve_length_point_domain(const bke::CurvesGeometry &curves)
case CURVE_TYPE_CATMULL_ROM: {
const int resolution = resolutions[i_curve];
for (const int i : IndexRange(points.size()).drop_back(1)) {
lengths[i + 1] = evaluated_lengths[resolution * i];
lengths[i + 1] = evaluated_lengths[resolution * (i + 1) - 1];
}
break;
}