Don't disable first internal layer in footprint editor.

It's used as a proxy for all internal layers.

Also fixes LAYER_RANGE_ITERATOR so that it works with an odd
number of copper layers.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20246
This commit is contained in:
Jeff Young
2025-03-11 18:41:35 +00:00
parent 5d9908647c
commit aee836d722
3 changed files with 9 additions and 3 deletions
+2 -1
View File
@@ -703,7 +703,8 @@ LSET LSET::SideSpecificMask()
LSET LSET::ForbiddenFootprintLayers()
{
static const LSET saved = InternalCuMask();
static LSET saved = InternalCuMask();
saved.set( In1_Cu, false );
return saved;
}