Curves: Fix overallocation for curve attributes when deleting curves

Curve attributes were allocated to the size of the point domain, which
wouldn't cause bad behavior, just potentially worse performance.
This commit is contained in:
Hans Goudey 2022-06-05 19:59:57 +02:00
parent 270a24cc64
commit 93a68f2a90
1 changed files with 1 additions and 1 deletions

View File

@ -1195,7 +1195,7 @@ static CurvesGeometry copy_with_removed_curves(const CurvesGeometry &curves,
const void *src_buffer = old_layer.data;
void *dst_buffer = ensure_customdata_layer(
new_curve_data, old_layer.name, data_type, new_tot_points);
new_curve_data, old_layer.name, data_type, new_tot_curves);
threading::parallel_for(
old_curve_ranges.index_range(), 128, [&](const IndexRange ranges_range) {