Browse Source

Revert "Tented usually means that there is no soldermask"

This reverts commit 021f251efd.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18230
jobs
Jon Evans 1 year ago
parent
commit
1a1083def6
  1. 4
      pcbnew/padstack.cpp

4
pcbnew/padstack.cpp

@ -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" );
}

Loading…
Cancel
Save