diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2022-07-28 11:16:02 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2022-07-28 11:16:02 +0300 |
commit | 00172363baad8d4bb4a621449630e6c47498d297 (patch) | |
tree | d70c25a829c6aa5465b329c72095f3842a8dd8f1 /source | |
parent | be77f6df5085c0206a0cda2b1b7795347a120dc8 (diff) |
Added some appropriate consts.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/curves_constraints.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/curves_constraints.cc b/source/blender/blenkernel/intern/curves_constraints.cc index cc04a80f93f..69d7a438523 100644 --- a/source/blender/blenkernel/intern/curves_constraints.cc +++ b/source/blender/blenkernel/intern/curves_constraints.cc @@ -194,7 +194,7 @@ void ConstraintSolver::find_contact_points(const CurvesGeometry &curves, for (const int point_i : points) { const float3 &new_p = curves.positions()[point_i]; - MutableSpan<Contact> contacts = contacts_.as_mutable_span().slice( + const MutableSpan<Contact> contacts = contacts_.as_mutable_span().slice( params_.max_contacts_per_point * point_i, params_.max_contacts_per_point); float3 p_su = transforms.curves_to_surface * new_p; @@ -308,7 +308,7 @@ void ConstraintSolver::solve_constraints(CurvesGeometry &curves, VArray<int> cha float3 &p = positions_cu[point_i]; const float radius_p = radius[point_i]; const int contacts_num = contacts_num_[point_i]; - Span<Contact> contacts = contacts_.as_span().slice( + const Span<Contact> contacts = contacts_.as_span().slice( params_.max_contacts_per_point * point_i, contacts_num); for (const Contact &c : contacts) { /* Constraint function */ @@ -360,7 +360,7 @@ void ConstraintSolver::solve_constraints(CurvesGeometry &curves, VArray<int> cha const float radius_p = radius[point_i]; const int contacts_num = contacts_num_[point_i]; result_.constraint_count += contacts_num; - Span<Contact> contacts = contacts_.as_span().slice( + const Span<Contact> contacts = contacts_.as_span().slice( params_.max_contacts_per_point * point_i, contacts_num); for (const Contact &c : contacts) { /* Constraint function */ |