Make sure bounding boxes get cached on rule areas.

Fixes https://gitlab.com/kicad/code/kicad/issues/6898
This commit is contained in:
Jeff Young 2021-01-01 23:17:15 +00:00
parent 018c17399d
commit 8a049cf290
1 changed files with 8 additions and 1 deletions

View File

@ -955,7 +955,14 @@ bool PNS_KICAD_IFACE_BASE::syncZone( PNS::NODE* aWorld, ZONE* aZone, SHAPE_POLY_
{
SHAPE_POLY_SET poly;
// TODO handle no-via restriction
if( !aZone->GetIsRuleArea() && aZone->GetZoneName().IsEmpty() )
return false;
// Required by expression function insideArea()
aZone->CacheBoundingBox();
// TODO handle aZone->GetDoNotAllowVias()
// TODO handle rules which disallow tracks & vias
if( !aZone->GetIsRuleArea() || !aZone->GetDoNotAllowTracks() )
return false;