Browse Source

pcbnew: Allow selection of back pads

Pads should be selectable when the respective copper layer is enabled.

Fixes: lp:1789084
* https://bugs.launchpad.net/kicad/+bug/1789084
pull/13/head
Seth Hillbrand 7 years ago
parent
commit
21ea31af15
  1. 9
      pcbnew/tools/selection_tool.cpp

9
pcbnew/tools/selection_tool.cpp

@ -1675,16 +1675,17 @@ bool SELECTION_TOOL::selectable( const BOARD_ITEM* aItem ) const
if( m_multiple && !m_editModules )
return false;
// When editing modules, it's allowed to select them, even when
// locked, since you already have to explicitly activate the
// module editor to get to this stage
// In pcbnew, locked modules prevent individual pad selection
// in modedit, we don't enforce this as the module is assumed to
// be edited by design
if( !m_editModules )
{
MODULE* mod = static_cast<const D_PAD*>( aItem )->GetParent();
if( mod && mod->IsLocked() )
return false;
}
else if( aItem->Type() == PCB_PAD_T )
if( aItem->Type() == PCB_PAD_T )
{
// In editor, pads are selectable if any draw layer is visible

Loading…
Cancel
Save