Allow FPID to be matched against in memberOfFootprint().

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16662
This commit is contained in:
Jeff Young 2024-01-22 14:02:16 +00:00
parent 6efe44a12a
commit 236123c487
1 changed files with 6 additions and 0 deletions

View File

@ -903,6 +903,12 @@ static void memberOfFootprintFunc( LIBEVAL::CONTEXT* aCtx, void* self )
{
if( parentFP->GetReference().Matches( arg->AsString() ) )
return 1.0;
if( arg->AsString().Contains( ':' )
&& parentFP->GetFPIDAsString().Matches( arg->AsString() ) )
{
return 1.0;
}
}
return 0.0;