Avoid snapping to edge cuts when routing

Snapping happens to elements on copper layers but edge cuts is only
_virtually_ on copper layers.  We need to set its routable flag off to
ensure we don't force-snap to the snap points
This commit is contained in:
Seth Hillbrand 2024-05-20 15:04:43 -07:00
parent 0a227ea916
commit c248993a84
1 changed files with 5 additions and 0 deletions

View File

@ -1352,9 +1352,14 @@ bool PNS_KICAD_IFACE_BASE::syncGraphicalItem( PNS::NODE* aWorld, PCB_SHAPE* aIte
std::unique_ptr<PNS::SOLID> solid = std::make_unique<PNS::SOLID>();
if( aItem->GetLayer() == Edge_Cuts || aItem->GetLayer() == Margin )
{
solid->SetLayers( LAYER_RANGE( F_Cu, B_Cu ) );
solid->SetRoutable( false );
}
else
{
solid->SetLayer( aItem->GetLayer() );
}
if( aItem->GetLayer() == Edge_Cuts )
{