Browse Source

Don't select footprints on the wrong side if not visible.

Fixes https://gitlab.com/kicad/code/kicad/issues/12483
7.0
Jeff Young 3 years ago
parent
commit
524a43f95e
  1. 4
      pcbnew/tools/pcb_selection_tool.cpp

4
pcbnew/tools/pcb_selection_tool.cpp

@ -2351,6 +2351,10 @@ bool PCB_SELECTION_TOOL::Selectable( const BOARD_ITEM* aItem, bool checkVisibili
// Allow selection of footprints if some part of the footprint is visible.
const FOOTPRINT* footprint = static_cast<const FOOTPRINT*>( aItem );
LSET boardSide = footprint->IsFlipped() ? LSET::BackMask() : LSET::FrontMask();
if( !( visibleLayers() & boardSide ).any() && !m_skip_heuristics )
return false;
// If the footprint has no items except the reference and value fields, include the
// footprint in the selections.

Loading…
Cancel
Save