Do not call MakeShapes in AddCopperPolygonShapes when polyset is empty.

Ease of debugging.
This commit is contained in:
Alex Shvartzkop 2024-02-23 22:13:59 +03:00
parent 711c6141a8
commit 0184dfb625
1 changed files with 3 additions and 0 deletions

View File

@ -323,6 +323,9 @@ bool STEP_PCB_MODEL::AddCopperPolygonShapes( const SHAPE_POLY_SET* aPolyShapes,
{
bool success = true;
if( aPolyShapes->IsEmpty() )
return true;
double z_pos = aOnTop ? m_boardThickness : -m_copperThickness;
if( !MakeShapes( aTrack ? m_board_copper_tracks : m_board_copper_zones, *aPolyShapes,