Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-06-05 20:59:57 +0300
committerHans Goudey <h.goudey@me.com>2022-06-05 21:00:06 +0300
commit93a68f2a9032fe2d977ffb9b483b0ddd04d03ad9 (patch)
tree3699c37463126b938f58171a83c682f4ffaf0cb3
parent270a24cc640587e650045d7511f64638916a8e78 (diff)
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.
-rw-r--r--source/blender/blenkernel/intern/curves_geometry.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/curves_geometry.cc b/source/blender/blenkernel/intern/curves_geometry.cc
index 2fa31bd4100..eb9b201c5b5 100644
--- a/source/blender/blenkernel/intern/curves_geometry.cc
+++ b/source/blender/blenkernel/intern/curves_geometry.cc
@@ -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) {