mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-15 10:43:15 +02:00
PNS: Check if either permutation is a keepout in collideSimple
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19923
This commit is contained in:
parent
d51363df40
commit
078703111b
@ -196,7 +196,8 @@ bool ITEM::collideSimple( const ITEM* aHead, const NODE* aNode, int aLayer,
|
|||||||
// a pad associated with a "free" pin (NIC) doesn't have a net until it has been used
|
// a pad associated with a "free" pin (NIC) doesn't have a net until it has been used
|
||||||
clearance = -1;
|
clearance = -1;
|
||||||
}
|
}
|
||||||
else if( aNode->GetRuleResolver()->IsKeepout( this, aHead, &enforce ) )
|
else if( aNode->GetRuleResolver()->IsKeepout( this, aHead, &enforce )
|
||||||
|
|| aNode->GetRuleResolver()->IsKeepout( aHead, this, &enforce ) )
|
||||||
{
|
{
|
||||||
if( enforce )
|
if( enforce )
|
||||||
clearance = 0; // keepouts are exact boundary; no clearance
|
clearance = 0; // keepouts are exact boundary; no clearance
|
||||||
|
Loading…
x
Reference in New Issue
Block a user