Pcbnew: do not select a PCB_REFERENCE_IMAGE if the LAYER_DRAW_BITMAPS is not visible.
LAYER_DRAW_BITMAPS layer controls transparency and visibility of images on the board. Fixes #16282 https://gitlab.com/kicad/code/kicad/-/issues/16282
This commit is contained in:
parent
02cdb0c6b9
commit
4a945172db
|
@ -2917,6 +2917,10 @@ bool PCB_SELECTION_TOOL::Selectable( const BOARD_ITEM* aItem, bool checkVisibili
|
|||
if( options.m_ImageOpacity == 0.00 )
|
||||
return false;
|
||||
|
||||
// Bitmap images on board are hidden if LAYER_DRAW_BITMAPS is not visible
|
||||
if( !view()->IsLayerVisible( LAYER_DRAW_BITMAPS ) )
|
||||
return false;
|
||||
|
||||
KI_FALLTHROUGH;
|
||||
|
||||
case PCB_SHAPE_T:
|
||||
|
|
Loading…
Reference in New Issue