Fix logic that was accidentally flipped in earlier commit.
Fixes https://gitlab.com/kicad/code/kicad/issues/12962 Fixes https://gitlab.com/kicad/code/kicad/issues/12969
This commit is contained in:
parent
0b0c35c4dc
commit
16db0440ba
|
@ -260,7 +260,7 @@ bool BOARD_NETLIST_UPDATER::updateFootprintParameters( FOOTPRINT* aPcbFootprint,
|
||||||
// Create a copy only if the footprint has not been added during this update
|
// Create a copy only if the footprint has not been added during this update
|
||||||
FOOTPRINT* copy = nullptr;
|
FOOTPRINT* copy = nullptr;
|
||||||
|
|
||||||
if( m_commit.GetStatus( aPcbFootprint ) )
|
if( !m_commit.GetStatus( aPcbFootprint ) )
|
||||||
{
|
{
|
||||||
copy = static_cast<FOOTPRINT*>( aPcbFootprint->Clone() );
|
copy = static_cast<FOOTPRINT*>( aPcbFootprint->Clone() );
|
||||||
copy->SetParentGroup( nullptr );
|
copy->SetParentGroup( nullptr );
|
||||||
|
|
Loading…
Reference in New Issue