Fix T99851: Subdivide Curve node does not initialize attributes of end point

This commit is contained in:
Jacques Lucke 2022-07-25 12:45:04 +02:00
parent 2c81b4d4cf
commit b9e66af686
Notes: blender-bot 2023-02-14 08:38:14 +01:00
Referenced by issue #99851, Regression: Subdivide Curve nodes sets radius to 0 on multiple bezier splines
1 changed files with 2 additions and 1 deletions

View File

@ -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));
}
});