[Bf-blender-cvs] [ba12548f247] geometry-nodes-curve-support: Cleanup: Fix typo in NURBSpline class name
Hans Goudey
noreply at git.blender.org
Thu Apr 15 20:55:20 CEST 2021
Commit: ba12548f2474602227f803ef6ad8cf0778630dfc
Author: Hans Goudey
Date: Thu Apr 15 13:55:13 2021 -0500
Branches: geometry-nodes-curve-support
https://developer.blender.org/rBba12548f2474602227f803ef6ad8cf0778630dfc
Cleanup: Fix typo in NURBSpline class name
===================================================================
M source/blender/blenkernel/BKE_derived_curve.hh
M source/blender/blenkernel/intern/derived_curve.cc
===================================================================
diff --git a/source/blender/blenkernel/BKE_derived_curve.hh b/source/blender/blenkernel/BKE_derived_curve.hh
index 3cb1f42e6f6..b2a7a311d3d 100644
--- a/source/blender/blenkernel/BKE_derived_curve.hh
+++ b/source/blender/blenkernel/BKE_derived_curve.hh
@@ -207,7 +207,7 @@ struct NURBSPoint {
float tilt;
};
-class NURBSPline : public Spline {
+class NURBSpline : public Spline {
public:
blender::Vector<NURBSPoint> control_points;
@@ -217,8 +217,8 @@ class NURBSPline : public Spline {
public:
SplinePtr copy() const final;
- NURBSPline() = default;
- NURBSPline(const NURBSPline &other)
+ NURBSpline() = default;
+ NURBSpline(const NURBSpline &other)
: Spline((Spline &)other),
control_points(other.control_points),
resolution_u(other.resolution_u),
diff --git a/source/blender/blenkernel/intern/derived_curve.cc b/source/blender/blenkernel/intern/derived_curve.cc
index eb2e185e724..11fe05d2223 100644
--- a/source/blender/blenkernel/intern/derived_curve.cc
+++ b/source/blender/blenkernel/intern/derived_curve.cc
@@ -793,43 +793,43 @@ float BezierSpline::control_point_radius(const int index) const
/** \name NURBS Spline
* \{ */
-SplinePtr NURBSPline::copy() const
+SplinePtr NURBSpline::copy() const
{
- SplinePtr new_spline = std::make_unique<NURBSPline>(*this);
+ SplinePtr new_spline = std::make_unique<NURBSpline>(*this);
return new_spline;
}
-int NURBSPline::size() const
+int NURBSpline::size() const
{
return this->control_points.size();
}
-int NURBSPline::resolution() const
+int NURBSpline::resolution() const
{
return this->resolution_u;
}
-void NURBSPline::set_resolution(const int value)
+void NURBSpline::set_resolution(const int value)
{
this->resolution_u = value;
this->mark_cache_invalid();
}
-int NURBSPline::evaluated_points_size() const
+int NURBSpline::evaluated_points_size() const
{
return 0;
}
-void NURBSPline::correct_end_tangents() const
+void NURBSpline::correct_end_tangents() const
{
}
-void NURBSPline::ensure_base_cache() const
+void NURBSpline::ensure_base_cache() const
{
}
-float NURBSPline::control_point_radius(const int index) const
+float NURBSpline::control_point_radius(const int index) const
{
return this->control_points[index].radius;
}
More information about the Bf-blender-cvs
mailing list