Exclude some fab attrs from library parity check.
Also excludes zone outline hatching, which is just a visualization property. Fixes https://gitlab.com/kicad/code/kicad/issues/10903
This commit is contained in:
parent
510dc28a5c
commit
86988225c3
|
@ -287,9 +287,11 @@ bool zonesNeedUpdate( const FP_ZONE* a, const FP_ZONE* b )
|
|||
TEST_D( a->GetHatchOrientation().AsDegrees(), b->GetHatchOrientation().AsDegrees() );
|
||||
TEST( a->GetHatchSmoothingLevel(), b->GetHatchSmoothingLevel() );
|
||||
TEST( a->GetHatchSmoothingValue(), b->GetHatchSmoothingValue() );
|
||||
TEST( a->GetHatchBorderAlgorithm(), b->GetHatchBorderAlgorithm() );
|
||||
TEST( a->GetHatchHoleMinArea(), b->GetHatchHoleMinArea() );
|
||||
|
||||
// This is just a display property
|
||||
// TEST( a->GetHatchBorderAlgorithm(), b->GetHatchBorderAlgorithm() );
|
||||
|
||||
TEST( a->Outline()->TotalVertices(), b->Outline()->TotalVertices() );
|
||||
|
||||
for( int ii = 0; ii < a->Outline()->TotalVertices(); ++ii )
|
||||
|
@ -319,6 +321,7 @@ bool modelsNeedUpdate( const FP_3DMODEL& a, const FP_3DMODEL& b )
|
|||
|
||||
bool FOOTPRINT::FootprintNeedsUpdate( const FOOTPRINT* aLibFootprint )
|
||||
{
|
||||
#define TEST_ATTR( a, b, attr ) TEST( ( a & attr ), ( b & attr ) );
|
||||
wxASSERT( aLibFootprint );
|
||||
|
||||
if( IsFlipped() )
|
||||
|
@ -330,7 +333,11 @@ bool FOOTPRINT::FootprintNeedsUpdate( const FOOTPRINT* aLibFootprint )
|
|||
|
||||
TEST( GetDescription(), aLibFootprint->GetDescription() );
|
||||
TEST( GetKeywords(), aLibFootprint->GetKeywords() );
|
||||
TEST( GetAttributes(), aLibFootprint->GetAttributes() );
|
||||
|
||||
TEST_ATTR( GetAttributes(), aLibFootprint->GetAttributes(), FP_THROUGH_HOLE );
|
||||
TEST_ATTR( GetAttributes(), aLibFootprint->GetAttributes(), FP_SMD );
|
||||
TEST_ATTR( GetAttributes(), aLibFootprint->GetAttributes(), FP_ALLOW_SOLDERMASK_BRIDGES );
|
||||
TEST_ATTR( GetAttributes(), aLibFootprint->GetAttributes(), FP_ALLOW_MISSING_COURTYARD );
|
||||
|
||||
TEST( GetLocalClearance(), aLibFootprint->GetLocalClearance() );
|
||||
TEST( GetLocalSolderMaskMargin(), aLibFootprint->GetLocalSolderMaskMargin() );
|
||||
|
|
Loading…
Reference in New Issue