diff options
author | Hans Goudey <h.goudey@me.com> | 2021-09-20 02:54:03 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-09-20 02:54:03 +0300 |
commit | 25aa943e8cb8d5a33beb906207255e5d0ea08544 (patch) | |
tree | 3afc05c069b180369de4315f1110908349d59a07 /source/blender/blenkernel | |
parent | 276eebb274744d819dcdab8a95770dd7382c0664 (diff) |
Cleanup: Fix/improve variable names and comments
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/curve_eval.cc | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/spline_base.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/curve_eval.cc b/source/blender/blenkernel/intern/curve_eval.cc index 1c4f9c5a6ab..ea84766943d 100644 --- a/source/blender/blenkernel/intern/curve_eval.cc +++ b/source/blender/blenkernel/intern/curve_eval.cc @@ -110,7 +110,7 @@ void CurveEval::bounds_min_max(float3 &min, float3 &max, const bool use_evaluate } /** - * Return the start indices for each of the curve spline's evaluated points, as if they were part + * Return the start indices for each of the curve spline's control points, if they were part * of a flattened array. This can be used to facilitate parallelism by avoiding the need to * accumulate an offset while doing more complex calculations. * diff --git a/source/blender/blenkernel/intern/spline_base.cc b/source/blender/blenkernel/intern/spline_base.cc index a8871777420..807019f60a8 100644 --- a/source/blender/blenkernel/intern/spline_base.cc +++ b/source/blender/blenkernel/intern/spline_base.cc @@ -190,7 +190,7 @@ static void accumulate_lengths(Span<float3> positions, * Return non-owning access to the cache of accumulated lengths along the spline. Each item is the * length of the subsequent segment, i.e. the first value is the length of the first segment rather * than 0. This calculation is rather trivial, and only depends on the evaluated positions. - * However, the results are used often, so it makes sense to cache it. + * However, the results are used often, and it is necessarily single threaded, so it is cached. */ Span<float> Spline::evaluated_lengths() const { |