Exclude footprints and groups from VIA_PLACER DRC testing.

(Their children need to get tested, but not the parent objects
themselves.)

Fixes https://gitlab.com/kicad/code/kicad/issues/7569
This commit is contained in:
Jeff Young 2021-02-17 10:56:06 +00:00
parent cc11c8d45f
commit d66de5bb35
1 changed files with 5 additions and 2 deletions

View File

@ -2258,10 +2258,13 @@ int DRAWING_TOOL::DrawVia( const TOOL_EVENT& aEvent )
continue;
if( item->Type() == PCB_ZONE_T || item->Type() == PCB_FP_ZONE_T )
continue;
continue; // stitching vias bind to zones, so ignore them
if( item->Type() == PCB_FOOTPRINT_T || item->Type() == PCB_GROUP_T )
continue; // check against children, but not against footprint itself
if( item->Type() == PCB_FP_TEXT_T && !static_cast<FP_TEXT*>( item )->IsVisible() )
continue;
continue; // ignore hidden items
if( checkedItems.count( item ) )
continue;