[Bf-blender-cvs] [a12fd5c3ada] master: Cleanup: Use consistent variable names
Hans Goudey
noreply at git.blender.org
Thu May 27 15:27:15 CEST 2021
Commit: a12fd5c3ada56c52e5cf1ee98877c79433f1f1c1
Author: Hans Goudey
Date: Thu May 27 09:27:08 2021 -0400
Branches: master
https://developer.blender.org/rBa12fd5c3ada56c52e5cf1ee98877c79433f1f1c1
Cleanup: Use consistent variable names
===================================================================
M source/blender/blenkernel/BKE_spline.hh
M source/blender/blenkernel/intern/spline_bezier.cc
===================================================================
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();
More information about the Bf-blender-cvs
mailing list