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:
parent
c614f73c50
commit
da061718e5
|
@ -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 ) );
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue