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 https://gitlab.com/kicad/code/kicad/-/issues/16283
This commit is contained in:
parent
31ae825b9d
commit
e769fdfab0
|
@ -2796,6 +2796,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