Make method UpdateControlPoints const.

--HG--
branch : feature
This commit is contained in:
dismine 2014-06-11 17:25:38 +03:00
parent 6bcf80e7a8
commit 745004bb5f
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ void VToolSplinePath::ControlPointChangePosition(const qint32 &indexSpline, cons
}
//---------------------------------------------------------------------------------------------------------------------
void VToolSplinePath::UpdateControlPoints(const VSpline &spl, VSplinePath &splPath, const qint32 &indexSpline)
void VToolSplinePath::UpdateControlPoints(const VSpline &spl, VSplinePath &splPath, const qint32 &indexSpline) const
{
VSplinePoint p = splPath.GetSplinePoint(indexSpline, SplinePoint::FirstPoint);
p.SetAngle2(spl.GetAngle1());

View File

@ -149,7 +149,7 @@ private:
* @param splPath spline path.
* @param indexSpline index spline in spline path.
*/
void UpdateControlPoints(const VSpline &spl, VSplinePath &splPath, const qint32 &indexSpline);
void UpdateControlPoints(const VSpline &spl, VSplinePath &splPath, const qint32 &indexSpline) const;
void RefreshSplinePath(VSplinePath &splPath);
};