Don't sync zone if polygon triangulation fails
This commit is contained in:
parent
463e944113
commit
0504a6db52
|
@ -801,6 +801,13 @@ bool PNS_KICAD_IFACE::syncZone( PNS::NODE* aWorld, ZONE_CONTAINER* aZone )
|
||||||
aZone->BuildSmoothedPoly( poly );
|
aZone->BuildSmoothedPoly( poly );
|
||||||
poly.CacheTriangulation();
|
poly.CacheTriangulation();
|
||||||
|
|
||||||
|
if( !poly.IsTriangulationUpToDate() )
|
||||||
|
{
|
||||||
|
wxFAIL_MSG( wxString::Format( "Zone triangulation failed for %s",
|
||||||
|
aZone->GetSelectMenuText() ) );
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
LSET layers = aZone->GetLayerSet();
|
LSET layers = aZone->GetLayerSet();
|
||||||
|
|
||||||
for( int layer = F_Cu; layer <= B_Cu; layer++ )
|
for( int layer = F_Cu; layer <= B_Cu; layer++ )
|
||||||
|
|
Loading…
Reference in New Issue