Browse Source

Fix minor Bug #1542935 (No solder mask unless there is something on the layer)

pull/11/head
jean-pierre charras 10 years ago
parent
commit
711607f152
  1. 5
      3d-viewer/3d_draw_board_body.cpp
  2. 1
      pcbnew/github/github_plugin.cpp

5
3d-viewer/3d_draw_board_body.cpp

@ -572,7 +572,10 @@ void EDA_3D_CANVAS::buildTechLayers3DView( REPORTER* aErrorMessages, REPORTER* a
// bufferPolys contains polygons to merge. Many overlaps .
// Calculate merged polygons and remove pads and vias holes
if( bufferPolys.IsEmpty() )
if( layer != B_Mask && layer != F_Mask && bufferPolys.IsEmpty() )
// if a layer has no iten to draw, skip it
// However solder mask layers are negative layers, so no item
// means only a full layer mask
continue;
// Solder mask layers are "negative" layers.

1
pcbnew/github/github_plugin.cpp

@ -194,6 +194,7 @@ MODULE* GITHUB_PLUGIN::FootprintLoad( const wxString& aLibraryPath,
if( it != m_gh_cache->end() ) // fp_name is present
{
//std::string::data() ensures that the referenced data block is contiguous.
wxMemoryInputStream mis( m_zip_image.data(), m_zip_image.size() );
// This decoder should always be UTF8, since it was saved that way by git.

Loading…
Cancel
Save