Cleanup: Curves: Remove redundant resizing in extrude operator

Curve resizing is already handled in `copy_only_curve_domain` (i.e.
copy curve nums/attributes, point_num = 0, fresh offset array)

Pull Request: https://projects.blender.org/blender/blender/pulls/117166
This commit is contained in:
Pratik Borhade
2024-01-17 12:31:52 +01:00
committed by Pratik Borhade
parent b10953d957
commit e39bd974a0

View File

@@ -248,7 +248,6 @@ static void extrude_curves(Curves &curves_id)
const int curves_num = curves.curves_num();
const int curve_intervals_size = extruded_points.size() * 2 + curves_num * 2;
new_curves.resize(0, curves_num);
MutableSpan<int> new_offsets = new_curves.offsets_for_write();
/* Buffer for intervals of all curves. Beginning and end of a curve can be determined only by