Pad ratsnest settings initial value
Pad ratsnest settings set to global settings during initilization.
Fixes: lp:1848488
* https://bugs.launchpad.net/kicad/+bug/1848488
(cherry picked from commit 29ce76b4e4
)
(slightly modified due to settings structure difference between
master and 5.1)
This commit is contained in:
parent
4130ce2b93
commit
e299343807
|
@ -149,6 +149,11 @@ MODULE* BOARD_NETLIST_UPDATER::addNewComponent( COMPONENT* aComponent )
|
|||
aComponent->GetFPID().Format().wx_str() );
|
||||
m_reporter->Report( msg, REPORTER::RPT_ACTION );
|
||||
|
||||
// Set the pads ratsnest settings to the global settings
|
||||
bool set_ratsnest = m_board->IsElementVisible( LAYER_RATSNEST );
|
||||
for( auto pad : footprint->Pads() )
|
||||
pad->SetLocalRatsnestVisible( set_ratsnest );
|
||||
|
||||
m_newFootprintsCount++;
|
||||
|
||||
if( !m_isDryRun )
|
||||
|
|
Loading…
Reference in New Issue