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
This commit is contained in:
Seth Hillbrand 2018-09-08 17:23:09 -07:00
parent c9fc20c54e
commit 21ea31af15
1 changed files with 5 additions and 4 deletions

View File

@ -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