Eagle doesn't use netclass clearance so make them the board clearance.

Fixes https://gitlab.com/kicad/code/kicad/issues/2442
This commit is contained in:
Jeff Young 2021-09-20 21:18:06 +01:00
parent ae8f817938
commit 04aff93248
1 changed files with 4 additions and 0 deletions

View File

@ -409,6 +409,10 @@ BOARD* EAGLE_PLUGIN::Load( const wxString& aFileName, BOARD* aAppendToMe,
auto finishNetclass =
[&]( NETCLASSPTR netclass )
{
// If Eagle has a clearance matrix then we'll build custom rules from that.
// Netclasses should just be the board minimum clearance.
netclass->SetClearance( KiROUND( designSettings.m_MinClearance ) );
if( netclass->GetTrackWidth() == INT_MAX )
netclass->SetTrackWidth( defaults.GetTrackWidth() );