Remove constraint on circle

Allows circle radius to snap to arbitrary points while editing

Fixes: lp:1773436
* https://bugs.launchpad.net/kicad/+bug/1773436
This commit is contained in:
Seth Hillbrand 2018-05-25 12:20:11 -07:00
parent c614f73c50
commit da061718e5
2 changed files with 0 additions and 8 deletions

View File

@ -1071,9 +1071,6 @@ bool DRAWING_TOOL::drawSegment( int aShape, DRAWSEGMENT*& aGraphic,
// 45 degree lines
if( direction45 && aShape == S_SEGMENT )
make45DegLine( aGraphic, &line45 );
else if( aShape == S_CIRCLE )
aGraphic->SetEnd( aGraphic->GetStart() + wxPoint(
EuclideanNorm( wxPoint( cursorPos - aGraphic->GetStart() ) ), 0 ) );
else
aGraphic->SetEnd( wxPoint( cursorPos.x, cursorPos.y ) );

View File

@ -165,11 +165,6 @@ public:
points->AddPoint( segment->GetCenter() );
points->AddPoint( segment->GetEnd() );
// Set constraints
// Circle end is on the horizontal axis with the center
points->Point( CIRC_END ).SetConstraint(
new EC_HORIZONTAL( points->Point( CIRC_END ),
points->Point( CIRC_CENTER ) ) );
break;
case S_POLYGON: