Do not call MakeShapes in AddCopperPolygonShapes when polyset is empty.

Ease of debugging.

(cherry picked from commit 0184dfb625)
This commit is contained in:
Alex Shvartzkop 2024-02-23 22:13:59 +03:00
parent 006f93773c
commit 5900f6baa4
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,