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
This commit is contained in:
Seth Hillbrand 2023-12-04 13:45:33 -08:00
parent 0e37ea0c66
commit 06c3879007
1 changed files with 4 additions and 1 deletions

View File

@ -337,6 +337,9 @@ void IPC2581_PLUGIN::addLocationNode( wxXmlNode* aNode, const PAD& aPad, bool aR
else else
pos = aPad.GetPosition(); pos = aPad.GetPosition();
if( aPad.GetOffset().x != 0 || aPad.GetOffset().y != 0 )
pos += aPad.GetOffset();
addLocationNode( aNode, pos.x, pos.y ); addLocationNode( aNode, pos.x, pos.y );
} }
@ -2540,7 +2543,7 @@ void IPC2581_PLUGIN::generateLayerSetNet( wxXmlNode* aLayerNode, PCB_LAYER_ID aL
addShape( tempFeature, *shape ); 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" ); wxXmlNode* tempSetNode = appendNode( aLayerNode, "Set" );