Commit e435a104 authored by Dick Hollenbeck's avatar Dick Hollenbeck

Add *.kicad_mod as default import footprint extension. Turn on all Cu layers...

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.
parent a93637b1
......@@ -47,7 +47,9 @@ MODULE* FOOTPRINT_EDIT_FRAME::Import_Module()
if( config )
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" ),
lastOpenedPathForLoading, wxEmptyString,
......
......@@ -2135,13 +2135,13 @@ D_PAD* PCB_PARSER::parseD_PAD() throw( IO_ERROR, PARSE_ERROR )
{
int layerMask = parseBoardItemLayersAsMask();
/*
// Only the layers that are used are saved so we need to enable all the copper
// layers to prevent any problems with the current design. At some point in
// the future, the layer handling should be improved.
// 15-Nov-2012 before today, only the cu layers that were used were
// saved. After wildcard *.Cu support went into effect, this is no
// longer an issue, but in order to load the interrim s-expression files,
// 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 )
layerMask |= ALL_CU_LAYERS;
*/
pad->SetLayerMask( layerMask );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment