From 2a0c31ed970d8cd7fb466b43176d07c4d1137802 Mon Sep 17 00:00:00 2001 From: Roberto Fernandez Bautista Date: Sat, 17 Sep 2022 00:21:02 +0100 Subject: [PATCH] Don't display footprints not in position files. --- 3d-viewer/3d_canvas/board_adapter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/3d-viewer/3d_canvas/board_adapter.cpp b/3d-viewer/3d_canvas/board_adapter.cpp index 8fd80041d5..19cbbea0dc 100644 --- a/3d-viewer/3d_canvas/board_adapter.cpp +++ b/3d-viewer/3d_canvas/board_adapter.cpp @@ -266,6 +266,9 @@ bool BOARD_ADAPTER::IsFootprintShown( FOOTPRINT_ATTR_T aFPAttributes ) const if( m_IsPreviewer ) // In panel Preview, footprints are always shown, of course return true; + if( aFPAttributes & FP_EXCLUDE_FROM_POS_FILES ) + return false; + if( aFPAttributes & FP_SMD ) return m_Cfg->m_Render.show_footprints_insert; else if( aFPAttributes & FP_THROUGH_HOLE )