pcbnew: A copy-pasted footprint's through hole pads will not get new inner layers when layer count changed
Description
If you copy a footprint in Pcbnew, and then increase the layer count in the stackup settings, the through hole pads configured with "All layers" don't get their shapes on new layers.
Steps to reproduce
- Copy a footprint on a 2 layer board (not duplicate)
- Change board to 4 layers in the Physical Stackup settings
- Change the layer to In1.Cu, right click and select "Hide all layers but active"
- You'll have to switch to another layer and back to In1.Cu to clearly see that the copied footprint doesn't have a shape on In1.Cu layer. I enabled Footprint layer to make the labels visible but it's the same without it.
KiCad Version
Application: KiCad PCB 编辑器 (64-bit)
Version: (6.99.0-4178-g55ca6145ea), release build
Libraries:
wxWidgets 3.2.1
FreeType 2.11.1
HarfBuzz 4.2.0
FontConfig 2.14.0
libcurl/7.83.1-DEV Schannel zlib/1.2.12
Platform: Windows 11 (build 22621), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Nov 3 2022 06:20:54
wxWidgets: 3.2.1 (wchar_t,wx containers)
Boost: 1.79.0
OCC: 7.6.0
Curl: 7.83.1-DEV
ngspice: 37
Compiler: Visual C++ 1929 without C++ ABI
Build settings:
KICAD_SPICE=ON