Do not assign priorities to rule areas

As noted by @jeffyoung, we shouldn't set priorities to rule areas as
this can expose unexpected issues

Related to https://gitlab.com/kicad/code/kicad/-/issues/7776
This commit is contained in:
Seth Hillbrand 2021-10-26 11:16:04 -07:00
parent 5b9519da6c
commit 0c99c99e12
1 changed files with 8 additions and 1 deletions

View File

@ -2675,8 +2675,11 @@ bool FABMASTER::loadZone( BOARD* aBoard, const std::unique_ptr<FABMASTER::TRACE>
zone->SetIsRuleArea( true );
zone->SetDoNotAllowVias( true );
}
else
{
zone->SetPriority( 50 );
}
zone->SetLocalClearance( 0 );
zone->SetPadConnection( ZONE_CONNECTION::FULL );
@ -2947,6 +2950,10 @@ bool FABMASTER::orderZones( BOARD* aBoard )
for( ZONE* zone : zones )
{
/// Rule areas do not have priorities
if( zone->GetIsRuleArea() )
continue;
if( zone->GetLayer() != layer )
{
layer = zone->GetLayer();