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:03:45 +00:00
parent 6efe44a12a
commit 236123c487
+6
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;