Add *.kicad_mod as default import footprint extension. Turn on all Cu layers for thru hole pads in case loading non-wildcard s-expression footprint files.
This commit is contained in:
parent
a93637b14f
commit
e435a104c9
|
@ -47,7 +47,9 @@ MODULE* FOOTPRINT_EDIT_FRAME::Import_Module()
|
||||||
if( config )
|
if( config )
|
||||||
config->Read( EXPORT_IMPORT_LASTPATH_KEY, &lastOpenedPathForLoading );
|
config->Read( EXPORT_IMPORT_LASTPATH_KEY, &lastOpenedPathForLoading );
|
||||||
|
|
||||||
wxString importWildCard = ModExportFileWildcard + wxT("|") + ModImportFileWildcard;
|
wxString importWildCard = FootprintLibFileWildcard + wxT("|") +
|
||||||
|
ModExportFileWildcard + wxT("|") +
|
||||||
|
ModImportFileWildcard;
|
||||||
|
|
||||||
wxFileDialog dlg( this, _( "Import Footprint Module" ),
|
wxFileDialog dlg( this, _( "Import Footprint Module" ),
|
||||||
lastOpenedPathForLoading, wxEmptyString,
|
lastOpenedPathForLoading, wxEmptyString,
|
||||||
|
|
|
@ -2135,13 +2135,13 @@ D_PAD* PCB_PARSER::parseD_PAD() throw( IO_ERROR, PARSE_ERROR )
|
||||||
{
|
{
|
||||||
int layerMask = parseBoardItemLayersAsMask();
|
int layerMask = parseBoardItemLayersAsMask();
|
||||||
|
|
||||||
/*
|
// 15-Nov-2012 before today, only the cu layers that were used were
|
||||||
// Only the layers that are used are saved so we need to enable all the copper
|
// saved. After wildcard *.Cu support went into effect, this is no
|
||||||
// layers to prevent any problems with the current design. At some point in
|
// longer an issue, but in order to load the interrim s-expression files,
|
||||||
// the future, the layer handling should be improved.
|
// turn on all Cu layers for thru hole pads. New files will not need this
|
||||||
|
// and eventually this code can be removed.
|
||||||
if( pad->GetAttribute() == PAD_STANDARD )
|
if( pad->GetAttribute() == PAD_STANDARD )
|
||||||
layerMask |= ALL_CU_LAYERS;
|
layerMask |= ALL_CU_LAYERS;
|
||||||
*/
|
|
||||||
|
|
||||||
pad->SetLayerMask( layerMask );
|
pad->SetLayerMask( layerMask );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue