Fixed inserted control points not added under the mouse.

This commit is contained in:
Leonardo Zide 2024-05-13 17:10:55 -07:00
parent aae75b36fe
commit 274b5816f5

View file

@ -1538,7 +1538,7 @@ int lcSynthInfo::InsertControlPoint(std::vector<lcPieceControlPoint>& ControlPoi
CalculateSections(ControlPoints, Sections,
[&](const lcVector3& CurvePoint, int SegmentIndex, float t)
{
float Distance = lcRayPointDistance(CurvePoint, Start, End);
float Distance = lcRayPointDistance(lcVector3LDrawToLeoCAD(CurvePoint), Start, End);
if (Distance < BestDistance)
{
BestSegment = SegmentIndex;