Remove group reference when exporting individual footprints
This commit is contained in:
parent
4cb993d872
commit
d923b871d7
|
@ -767,6 +767,9 @@ void PCB_EDIT_FRAME::ExportFootprintsToLibrary( bool aStoreInNewLib, const wxStr
|
|||
resetReference( fpCopy );
|
||||
pi->FootprintSave( libPath, fpCopy );
|
||||
|
||||
// Remove reference to the group before deleting
|
||||
fpCopy->SetParentGroup( nullptr );
|
||||
|
||||
delete fpCopy;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2530,8 +2530,9 @@ void PCB_PLUGIN::FootprintSave( const wxString& aLibraryPath, const FOOTPRINT* a
|
|||
footprint->Flip( footprint->GetPosition(), false );
|
||||
}
|
||||
|
||||
// Detach it from the board
|
||||
// Detach it from the board and its group
|
||||
footprint->SetParent( nullptr );
|
||||
footprint->SetParentGroup( nullptr );
|
||||
|
||||
wxLogTrace( traceKicadPcbPlugin, wxT( "Creating s-expr footprint file '%s'." ), fullPath );
|
||||
footprints.insert( footprintName,
|
||||
|
|
Loading…
Reference in New Issue