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:
parent
0a227ea916
commit
c248993a84
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue