diff options
author | Campbell Barton <campbell@blender.org> | 2022-05-11 02:58:39 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-05-11 04:02:01 +0300 |
commit | 0091c97b3277c22688a229a4264ee34dfff89d7a (patch) | |
tree | 4336e94d321ff1e902f37f3cc642c488a6019503 /source/blender/editors/curves/intern | |
parent | f9e0b94c2fadea99ba8d14094c9ed5c1a92e03ef (diff) |
Cleanup: use '_num' suffix instead of '_size' for CurveGeometry
Follow conventions from T85728.
Diffstat (limited to 'source/blender/editors/curves/intern')
-rw-r--r-- | source/blender/editors/curves/intern/curves_add.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/curves/intern/curves_add.cc b/source/blender/editors/curves/intern/curves_add.cc index 7d9e663c444..552ef1d96c8 100644 --- a/source/blender/editors/curves/intern/curves_add.cc +++ b/source/blender/editors/curves/intern/curves_add.cc @@ -20,7 +20,7 @@ bke::CurvesGeometry primitive_random_sphere(const int curves_size, const int poi MutableSpan<float3> positions = curves.positions_for_write(); float *radius_data = (float *)CustomData_add_layer_named( - &curves.point_data, CD_PROP_FLOAT, CD_DEFAULT, nullptr, curves.point_size, "radius"); + &curves.point_data, CD_PROP_FLOAT, CD_DEFAULT, nullptr, curves.point_num, "radius"); MutableSpan<float> radii{radius_data, curves.points_num()}; for (const int i : offsets.index_range()) { |