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
(cherry picked from commit c248993a84
)
This commit is contained in:
parent
4a800adffc
commit
e097f88d56
|
@ -1350,9 +1350,14 @@ bool PNS_KICAD_IFACE_BASE::syncGraphicalItem( PNS::NODE* aWorld, PCB_SHAPE* aIte
|
||||||
std::unique_ptr<PNS::SOLID> solid = std::make_unique<PNS::SOLID>();
|
std::unique_ptr<PNS::SOLID> solid = std::make_unique<PNS::SOLID>();
|
||||||
|
|
||||||
if( aItem->GetLayer() == Edge_Cuts || aItem->GetLayer() == Margin )
|
if( aItem->GetLayer() == Edge_Cuts || aItem->GetLayer() == Margin )
|
||||||
|
{
|
||||||
solid->SetLayers( LAYER_RANGE( F_Cu, B_Cu ) );
|
solid->SetLayers( LAYER_RANGE( F_Cu, B_Cu ) );
|
||||||
|
solid->SetRoutable( false );
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
solid->SetLayer( aItem->GetLayer() );
|
solid->SetLayer( aItem->GetLayer() );
|
||||||
|
}
|
||||||
|
|
||||||
if( aItem->GetLayer() == Edge_Cuts )
|
if( aItem->GetLayer() == Edge_Cuts )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue