Don't allow selection of footprint dimensions.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15418
(cherry picked from commit 750b92b17f
)
This commit is contained in:
parent
cf133975c1
commit
1ef90c898e
|
@ -2580,6 +2580,23 @@ bool PCB_SELECTION_TOOL::Selectable( const BOARD_ITEM* aItem, bool checkVisibili
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case PCB_DIM_ALIGNED_T:
|
||||||
|
case PCB_DIM_LEADER_T:
|
||||||
|
case PCB_DIM_CENTER_T:
|
||||||
|
case PCB_DIM_RADIAL_T:
|
||||||
|
case PCB_DIM_ORTHOGONAL_T:
|
||||||
|
if( aItem->GetParentFootprint() )
|
||||||
|
{
|
||||||
|
// Footprint dimension selections are only allowed in footprint editor mode.
|
||||||
|
if( !checkVisibilityOnly )
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if( !board()->IsLayerVisible( aItem->GetLayer() ) )
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
case PCB_PAD_T:
|
case PCB_PAD_T:
|
||||||
pad = static_cast<const PAD*>( aItem );
|
pad = static_cast<const PAD*>( aItem );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue