Modified parser to skip drill specifications for SMD pads

This commit is contained in:
Cirilo Bernardo 2016-09-14 18:37:11 +10:00 committed by Wayne Stambaugh
parent ad7302358b
commit 375741eeaa
1 changed files with 7 additions and 1 deletions

View File

@ -78,9 +78,15 @@ bool KICADPAD::Read( SEXPR::SEXPR* aEntry )
bool ret = true;
if( name == "drill" )
ret = parseDrill( child );
{
// ignore any drill info for SMD pads
if( m_thruhole )
ret = parseDrill( child );
}
else if( name == "at" )
{
ret = Get2DPositionAndRotation( child, m_position, m_rotation );
}
if( !ret )
return false;