STEP export: don't put copper on non-flashed pad layers.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18267
This commit is contained in:
Alex Shvartzkop 2024-06-27 06:38:50 +03:00
parent c70ef36739
commit dc2a63d146
1 changed files with 3 additions and 0 deletions

View File

@ -765,6 +765,9 @@ bool STEP_PCB_MODEL::AddPadShape( const PAD* aPad, const VECTOR2D& aOrigin, bool
if( pcb_layer == F_Mask || pcb_layer == B_Mask )
continue;
if( !aPad->FlashLayer( pcb_layer ) )
continue;
double Zpos, thickness;
getLayerZPlacement( pcb_layer, Zpos, thickness );