From e5c4cfc3b01724de705609c901575b40cd3958b4 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Wed, 1 Nov 2017 10:41:10 +0100 Subject: [PATCH] Eagle board importer: enable rectangle on drawing layers Now the graphical polygons in footprints are properly handled by the footprint editor, so there is no reason not to import them. Coverity CID: 168709 --- pcbnew/eagle_plugin.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pcbnew/eagle_plugin.cpp b/pcbnew/eagle_plugin.cpp index a135f8dffb..b13a8c5cd3 100644 --- a/pcbnew/eagle_plugin.cpp +++ b/pcbnew/eagle_plugin.cpp @@ -1482,14 +1482,6 @@ void EAGLE_PLUGIN::packageRectangle( MODULE* aModule, wxXmlNode* aTree ) const ERECT r( aTree ); PCB_LAYER_ID layer = kicad_layer( r.layer ); - // Rectangles are not supported yet in footprints as they are not editable. - wxLogMessage( wxString::Format( "Unsupported rectangle in package %s" - " (%f mm, %f mm) (%f mm, %f mm), layer: %s", - aModule->GetFPID().GetLibItemName().c_str(), r.x1.ToMm(), r.y1.ToMm(), - r.x2.ToMm(), r.y2.ToMm(), eagle_layer_name( r.layer ) ) ); - - return; - if( IsCopperLayer( layer ) ) // skip copper "package.circle"s { wxLogMessage( wxString::Format(