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