3D Viewer: fix no solder mask unless there is something on the layer. (fixes lp:542935)

This commit is contained in:
jean-pierre charras 2016-02-10 20:47:34 -05:00 committed by Wayne Stambaugh
parent 609b996abe
commit 2cebaa2d79
1 changed files with 4 additions and 1 deletions

View File

@ -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.