Areas might have layers defined in area as well as rule.
Fixes https://gitlab.com/kicad/code/kicad/issues/12584
This commit is contained in:
parent
79dabdd484
commit
51c20da93e
|
@ -629,6 +629,9 @@ static void intersectsAreaFunc( LIBEVAL::CONTEXT* aCtx, void* self )
|
|||
if( !aArea || aArea == item || aArea->GetParent() == item )
|
||||
return false;
|
||||
|
||||
if( !( aArea->GetLayerSet() & item->GetLayerSet() ).any() )
|
||||
return false;
|
||||
|
||||
if( !aArea->GetBoundingBox().Intersects( itemBBox ) )
|
||||
return false;
|
||||
|
||||
|
@ -692,6 +695,9 @@ static void enclosedByAreaFunc( LIBEVAL::CONTEXT* aCtx, void* self )
|
|||
if( !aArea || aArea == item || aArea->GetParent() == item )
|
||||
return false;
|
||||
|
||||
if( !( aArea->GetLayerSet() & item->GetLayerSet() ).any() )
|
||||
return false;
|
||||
|
||||
if( !aArea->GetBoundingBox().Intersects( itemBBox ) )
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue