diff options
author | Hans Goudey <h.goudey@me.com> | 2022-02-22 01:06:17 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-02-22 01:06:17 +0300 |
commit | dde5cc6670f3f41e617f5b5fd49d7982c0304c21 (patch) | |
tree | 740188fc05d73b5e840a7aeacb15f0d306eac59f /source/blender/blenkernel/intern/curves_geometry.cc | |
parent | 24ddb4b1ad7237f888bec19a2e576f3b2a5e9a84 (diff) |
Cleanup: Use curves wrapper
Diffstat (limited to 'source/blender/blenkernel/intern/curves_geometry.cc')
-rw-r--r-- | source/blender/blenkernel/intern/curves_geometry.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/curves_geometry.cc b/source/blender/blenkernel/intern/curves_geometry.cc index ac40b7a7aa1..3e45fce3776 100644 --- a/source/blender/blenkernel/intern/curves_geometry.cc +++ b/source/blender/blenkernel/intern/curves_geometry.cc @@ -142,8 +142,8 @@ MutableSpan<int8_t> CurvesGeometry::curve_types() MutableSpan<float3> CurvesGeometry::positions() { - CustomData_duplicate_referenced_layer(&this->point_data, CD_PROP_FLOAT3, this->point_size); - this->update_customdata_pointers(); + this->position = (float(*)[3])CustomData_duplicate_referenced_layer_named( + &this->point_data, CD_PROP_FLOAT3, ATTR_POSITION.c_str(), this->point_size); return {(float3 *)this->position, this->point_size}; } Span<float3> CurvesGeometry::positions() const |