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
path: root/source
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-05-27 16:27:08 +0300
committerHans Goudey <h.goudey@me.com>2021-05-27 16:27:08 +0300
commita12fd5c3ada56c52e5cf1ee98877c79433f1f1c1 (patch)
treec5aba7f2a8ba77339aced5192a7ccbaae634fdff /source
parent5721c89ba8a5d6b2a1cb275a49aa63ba25fc61cb (diff)
Cleanup: Use consistent variable names
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/BKE_spline.hh8
-rw-r--r--source/blender/blenkernel/intern/spline_bezier.cc16
2 files changed, 12 insertions, 12 deletions
diff --git a/source/blender/blenkernel/BKE_spline.hh b/source/blender/blenkernel/BKE_spline.hh
index 9e5552082af..8d679a445b7 100644
--- a/source/blender/blenkernel/BKE_spline.hh
+++ b/source/blender/blenkernel/BKE_spline.hh
@@ -257,10 +257,10 @@ class BezierSpline final : public Spline {
void set_resolution(const int value);
void add_point(const blender::float3 position,
- const HandleType handle_type_start,
- const blender::float3 handle_position_start,
- const HandleType handle_type_end,
- const blender::float3 handle_position_end,
+ const HandleType handle_type_left,
+ const blender::float3 handle_position_left,
+ const HandleType handle_type_right,
+ const blender::float3 handle_position_right,
const float radius,
const float tilt);
diff --git a/source/blender/blenkernel/intern/spline_bezier.cc b/source/blender/blenkernel/intern/spline_bezier.cc
index 4be3ba8576e..4f2625c14d3 100644
--- a/source/blender/blenkernel/intern/spline_bezier.cc
+++ b/source/blender/blenkernel/intern/spline_bezier.cc
@@ -59,18 +59,18 @@ void BezierSpline::set_resolution(const int value)
* \warning Call #reallocate on the spline's attributes after adding all points.
*/
void BezierSpline::add_point(const float3 position,
- const HandleType handle_type_start,
- const float3 handle_position_start,
- const HandleType handle_type_end,
- const float3 handle_position_end,
+ const HandleType handle_type_left,
+ const float3 handle_position_left,
+ const HandleType handle_type_right,
+ const float3 handle_position_right,
const float radius,
const float tilt)
{
- handle_types_left_.append(handle_type_start);
- handle_positions_left_.append(handle_position_start);
+ handle_types_left_.append(handle_type_left);
+ handle_positions_left_.append(handle_position_left);
positions_.append(position);
- handle_types_right_.append(handle_type_end);
- handle_positions_right_.append(handle_position_end);
+ handle_types_right_.append(handle_type_right);
+ handle_positions_right_.append(handle_position_right);
radii_.append(radius);
tilts_.append(tilt);
this->mark_cache_invalid();