Fix T99851: Subdivide Curve node does not initialize attributes of end point
This commit is contained in:
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
|
@ -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));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue