P-CAD: Support Rounded Rect import

The P-CAD import supports rounded rectangles but doesn't allow
modification of the radius.
This commit is contained in:
Seth Hillbrand 2020-04-17 10:47:44 -07:00
parent ae6fbc9c60
commit 6af21703fe
1 changed files with 3 additions and 2 deletions

View File

@ -265,9 +265,10 @@ void PCB_PAD::AddToModule( MODULE* aModule, int aRotation, bool aEncapsulatedPad
else else
pad->SetShape( PAD_SHAPE_CIRCLE ); pad->SetShape( PAD_SHAPE_CIRCLE );
} }
else if( padShapeName == wxT( "Rect" ) else if( padShapeName == wxT( "Rect" ) )
|| padShapeName == wxT( "RndRect" ) )
pad->SetShape( PAD_SHAPE_RECT ); pad->SetShape( PAD_SHAPE_RECT );
else if( padShapeName == wxT( "RndRect" ) )
pad->SetShape( PAD_SHAPE_ROUNDRECT );
else if( padShapeName == wxT( "Polygon" ) ) else if( padShapeName == wxT( "Polygon" ) )
pad->SetShape( PAD_SHAPE_RECT ); // approximation pad->SetShape( PAD_SHAPE_RECT ); // approximation