router: fix regression in PNS_KICAD_IFACE treating newly created items as invisible (side effect = non-45 degree angles due to incorrect snapping)
This commit is contained in:
parent
6850067182
commit
a28f58d14d
|
@ -1104,8 +1104,10 @@ bool PNS_KICAD_IFACE::IsAnyLayerVisible( const LAYER_RANGE& aLayer )
|
||||||
|
|
||||||
bool PNS_KICAD_IFACE::IsItemVisible( const PNS::ITEM* aItem )
|
bool PNS_KICAD_IFACE::IsItemVisible( const PNS::ITEM* aItem )
|
||||||
{
|
{
|
||||||
|
// by default, all items are visible (new ones created by the router have parent == NULL as they have not been
|
||||||
|
// committed yet to the BOARD)
|
||||||
if( !m_view || !aItem->Parent() )
|
if( !m_view || !aItem->Parent() )
|
||||||
return false;
|
return true;
|
||||||
|
|
||||||
auto item = aItem->Parent();
|
auto item = aItem->Parent();
|
||||||
bool isOnVisibleLayer = true;
|
bool isOnVisibleLayer = true;
|
||||||
|
|
Loading…
Reference in New Issue