diff options
-rw-r--r-- | source/blender/geometry/intern/subdivide_curves.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/geometry/intern/subdivide_curves.cc b/source/blender/geometry/intern/subdivide_curves.cc index 8a6f3cbd5e3..8057f029e73 100644 --- a/source/blender/geometry/intern/subdivide_curves.cc +++ b/source/blender/geometry/intern/subdivide_curves.cc @@ -91,7 +91,8 @@ static void subdivide_attribute_linear(const bke::CurvesGeometry &src_curves, } }); - const IndexRange dst_last_segment = bke::offsets_to_range(offsets, src_points.size() - 1); + const IndexRange dst_last_segment = dst_points.slice( + bke::offsets_to_range(offsets, src_points.size() - 1)); linear_interpolation(curve_src.last(), curve_src.first(), dst.slice(dst_last_segment)); } }); |