Revert "Tented usually means that there is no soldermask"

This reverts commit 021f251efd.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18230
This commit is contained in:
Jon Evans 2024-06-18 17:45:43 -04:00
parent c5056beeb3
commit 1a1083def6
1 changed files with 2 additions and 2 deletions

View File

@ -540,10 +540,10 @@ void PADSTACK::ClearPrimitives( PCB_LAYER_ID aLayer )
std::optional<bool> PADSTACK::IsTented( PCB_LAYER_ID aSide ) const
{
if( IsFrontLayer( aSide ) )
return !m_frontMaskProps.has_solder_mask;
return m_frontMaskProps.has_solder_mask;
if( IsBackLayer( aSide ) )
return !m_backMaskProps.has_solder_mask;
return m_backMaskProps.has_solder_mask;
wxCHECK_MSG( false, std::nullopt, "IsTented expects a front or back layer" );
}