Do not call MakeShapes in AddCopperPolygonShapes when polyset is empty.
Ease of debugging.
This commit is contained in:
parent
711c6141a8
commit
0184dfb625
|
@ -323,6 +323,9 @@ bool STEP_PCB_MODEL::AddCopperPolygonShapes( const SHAPE_POLY_SET* aPolyShapes,
|
||||||
{
|
{
|
||||||
bool success = true;
|
bool success = true;
|
||||||
|
|
||||||
|
if( aPolyShapes->IsEmpty() )
|
||||||
|
return true;
|
||||||
|
|
||||||
double z_pos = aOnTop ? m_boardThickness : -m_copperThickness;
|
double z_pos = aOnTop ? m_boardThickness : -m_copperThickness;
|
||||||
|
|
||||||
if( !MakeShapes( aTrack ? m_board_copper_tracks : m_board_copper_zones, *aPolyShapes,
|
if( !MakeShapes( aTrack ? m_board_copper_tracks : m_board_copper_zones, *aPolyShapes,
|
||||||
|
|
Loading…
Reference in New Issue