From 06c3879007f5bf44a0134086d754d5c670780ed6 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Mon, 4 Dec 2023 13:45:33 -0800 Subject: [PATCH] Don't put polygons in shared bins Some viewers don't want to render polygons as part of UserSpecial, so keep them in their own set even though they have absolute coordinates --- pcbnew/plugins/ipc2581/ipc2581_plugin.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcbnew/plugins/ipc2581/ipc2581_plugin.cpp b/pcbnew/plugins/ipc2581/ipc2581_plugin.cpp index 1fa2b52806..c51a0b590c 100644 --- a/pcbnew/plugins/ipc2581/ipc2581_plugin.cpp +++ b/pcbnew/plugins/ipc2581/ipc2581_plugin.cpp @@ -337,6 +337,9 @@ void IPC2581_PLUGIN::addLocationNode( wxXmlNode* aNode, const PAD& aPad, bool aR else pos = aPad.GetPosition(); + if( aPad.GetOffset().x != 0 || aPad.GetOffset().y != 0 ) + pos += aPad.GetOffset(); + addLocationNode( aNode, pos.x, pos.y ); } @@ -2540,7 +2543,7 @@ void IPC2581_PLUGIN::generateLayerSetNet( wxXmlNode* aLayerNode, PCB_LAYER_ID aL addShape( tempFeature, *shape ); } - else if( shape->GetShape() == SHAPE_T::CIRCLE || shape->GetShape() == SHAPE_T::RECTANGLE ) + else if( shape->GetShape() == SHAPE_T::CIRCLE || shape->GetShape() == SHAPE_T::RECTANGLE || shape->GetShape() == SHAPE_T::POLY ) { wxXmlNode* tempSetNode = appendNode( aLayerNode, "Set" );