mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Fixed inserted control points not added under the mouse.
This commit is contained in:
parent
aae75b36fe
commit
274b5816f5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue