diff --git a/3d-viewer/3d_canvas/board_adapter.cpp b/3d-viewer/3d_canvas/board_adapter.cpp index cf948be7c4..d84e713920 100644 --- a/3d-viewer/3d_canvas/board_adapter.cpp +++ b/3d-viewer/3d_canvas/board_adapter.cpp @@ -595,8 +595,10 @@ std::map BOARD_ADAPTER::GetLayerColors() const } else { - for( const auto& [ layer, color ] : GetDefaultColors() ) - colors[ layer ] = color; + COLOR_SETTINGS* settings = Pgm().GetSettingsManager().GetColorSettings(); + + for( const auto& [ layer, defaultColor /* unused */ ] : GetDefaultColors() ) + colors[ layer ] = settings->GetColor( layer ); } if( m_Cfg->m_UseStackupColors && m_board )