Force flashing when generating SOLIDs.
We only have a single SOLID per pad, so the solid's shape must always be the flashed shape and then we can do layer-specific flashing tests internally. Fixes https://gitlab.com/kicad/code/kicad/issues/12458
This commit is contained in:
parent
d1450e1802
commit
08260661b8
|
@ -1007,7 +1007,10 @@ std::unique_ptr<PNS::SOLID> PNS_KICAD_IFACE_BASE::syncPad( PAD* aPad )
|
|||
solid->SetHole( slot );
|
||||
}
|
||||
|
||||
std::shared_ptr<SHAPE> shape = aPad->GetEffectiveShape();
|
||||
// We generate a single SOLID for a pad, so we have to treat it as ALWAYS_FLASHED and then
|
||||
// perform layer-specific flashing tests internally.
|
||||
std::shared_ptr<SHAPE> shape = aPad->GetEffectiveShape( UNDEFINED_LAYER,
|
||||
FLASHING::ALWAYS_FLASHED );
|
||||
|
||||
if( shape->HasIndexableSubshapes() && shape->GetIndexableSubshapeCount() == 1 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue