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:
parent
29d6fe88f0
commit
9c817638d9
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue