From 4333991b7bc563a6d11632ed3968623f2545c830 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Mon, 10 May 2021 19:33:12 -0500 Subject: Cleanup: Reorder class variable declarations The order was arbitrary, and rearranging the declarations makes the class look less messy, and makes room for future comments. --- source/blender/blenkernel/BKE_spline.hh | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'source/blender/blenkernel/BKE_spline.hh') diff --git a/source/blender/blenkernel/BKE_spline.hh b/source/blender/blenkernel/BKE_spline.hh index 5ff6fc4a5b4..48b5dfb1623 100644 --- a/source/blender/blenkernel/BKE_spline.hh +++ b/source/blender/blenkernel/BKE_spline.hh @@ -198,15 +198,17 @@ class BezierSpline final : public Spline { }; private: - blender::Vector handle_types_left_; - blender::Vector handle_positions_left_; blender::Vector positions_; - blender::Vector handle_types_right_; - blender::Vector handle_positions_right_; blender::Vector radii_; blender::Vector tilts_; int resolution_; + blender::Vector handle_types_left_; + blender::Vector handle_types_right_; + + blender::Vector handle_positions_left_; + blender::Vector handle_positions_right_; + /** Start index in evaluated points array for every control point. */ mutable blender::Vector offset_cache_; mutable std::mutex offset_cache_mutex_; @@ -229,14 +231,14 @@ class BezierSpline final : public Spline { } BezierSpline(const BezierSpline &other) : Spline((Spline &)other), - handle_types_left_(other.handle_types_left_), - handle_positions_left_(other.handle_positions_left_), positions_(other.positions_), - handle_types_right_(other.handle_types_right_), - handle_positions_right_(other.handle_positions_right_), radii_(other.radii_), tilts_(other.tilts_), - resolution_(other.resolution_) + resolution_(other.resolution_), + handle_types_left_(other.handle_types_left_), + handle_types_right_(other.handle_types_right_), + handle_positions_left_(other.handle_positions_left_), + handle_positions_right_(other.handle_positions_right_) { } @@ -299,7 +301,6 @@ class BezierSpline final : public Spline { void evaluate_bezier_segment(const int index, const int next_index, blender::MutableSpan positions) const; - blender::Array evaluated_point_offsets() const; }; /** -- cgit v1.2.3