Don't break tracks without snap
If the user asks to not snap to a track, we should also prevent the track from snapping to the via Fixes https://gitlab.com/kicad/code/kicad/issues/13142
This commit is contained in:
parent
10a3d57193
commit
279edcefdc
|
@ -3063,7 +3063,10 @@ int DRAWING_TOOL::DrawVia( const TOOL_EVENT& aEvent )
|
|||
|
||||
aCommit.Add( via );
|
||||
|
||||
if( track )
|
||||
// If the user explicitly disables snap (using shift), then don't break the tracks into
|
||||
// a chevron. This will prevent PNS from being able to connect the via and track but
|
||||
// it is explicitly requested by the user
|
||||
if( track && m_gridHelper.GetSnap() )
|
||||
{
|
||||
VECTOR2I trackStart = track->GetStart();
|
||||
VECTOR2I trackEnd = track->GetEnd();
|
||||
|
|
Loading…
Reference in New Issue