Allow FPID to be matched against in memberOfFootprint().
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16662
This commit is contained in:
parent
6efe44a12a
commit
236123c487
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue