Don't depend on a keepout zone having no priority.
Fixes https://gitlab.com/kicad/code/kicad/issues/7776
This commit is contained in:
parent
c13ff9cec9
commit
341b0a5652
|
@ -935,14 +935,18 @@ void ZONE_FILLER::buildCopperItemClearances( const ZONE* aZone, PCB_LAYER_ID aLa
|
||||||
if( checkForCancel( m_progressReporter ) )
|
if( checkForCancel( m_progressReporter ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if( otherZone->GetNetCode() != aZone->GetNetCode()
|
if( otherZone->GetIsRuleArea() )
|
||||||
&& otherZone->GetPriority() > aZone->GetPriority() )
|
|
||||||
{
|
{
|
||||||
knockoutZoneClearance( otherZone );
|
if( otherZone->GetDoNotAllowCopperPour() )
|
||||||
|
knockoutZoneClearance( otherZone );
|
||||||
}
|
}
|
||||||
else if( otherZone->GetIsRuleArea() && otherZone->GetDoNotAllowCopperPour() )
|
else
|
||||||
{
|
{
|
||||||
knockoutZoneClearance( otherZone );
|
if( otherZone->GetNetCode() != aZone->GetNetCode()
|
||||||
|
&& otherZone->GetPriority() > aZone->GetPriority() )
|
||||||
|
{
|
||||||
|
knockoutZoneClearance( otherZone );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -953,14 +957,18 @@ void ZONE_FILLER::buildCopperItemClearances( const ZONE* aZone, PCB_LAYER_ID aLa
|
||||||
if( checkForCancel( m_progressReporter ) )
|
if( checkForCancel( m_progressReporter ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if( otherZone->GetNetCode() != aZone->GetNetCode()
|
if( otherZone->GetIsRuleArea() )
|
||||||
&& otherZone->GetPriority() > aZone->GetPriority() )
|
|
||||||
{
|
{
|
||||||
knockoutZoneClearance( otherZone );
|
if( otherZone->GetDoNotAllowCopperPour() )
|
||||||
|
knockoutZoneClearance( otherZone );
|
||||||
}
|
}
|
||||||
else if( otherZone->GetIsRuleArea() && otherZone->GetDoNotAllowCopperPour() )
|
else
|
||||||
{
|
{
|
||||||
knockoutZoneClearance( otherZone );
|
if( otherZone->GetNetCode() != aZone->GetNetCode()
|
||||||
|
&& otherZone->GetPriority() > aZone->GetPriority() )
|
||||||
|
{
|
||||||
|
knockoutZoneClearance( otherZone );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue