ZONE_CONTAINER::TransformSolidAreasShapesToPolygonSet(): fix incorrect transform

For zones filled using the new algo (filled areas without thickness), a outline
with thickness was added, that is incorrect.
Used only in 3D viewer.
This commit is contained in:
jean-pierre charras 2020-08-11 11:49:08 +02:00
parent 29d6fe88f0
commit 9c817638d9
1 changed files with 5 additions and 1 deletions

View File

@ -258,10 +258,14 @@ void ZONE_CONTAINER::TransformSolidAreasShapesToPolygonSet( PCB_LAYER_ID aLayer,
auto board = GetBoard();
int maxError = ARC_HIGH_DEF;
// add filled areas outlines, which are drawn with thick lines segments
// but only if filled polygons outlines have thickness
if( !GetFilledPolysUseThickness() )
return;
if( board )
maxError = board->GetDesignSettings().m_MaxError;
// add filled areas outlines, which are drawn with thick lines
for( int i = 0; i < polys.OutlineCount(); i++ )
{
const SHAPE_LINE_CHAIN& path = polys.COutline( i );