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:
parent
0e37ea0c66
commit
06c3879007
|
@ -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" );
|
||||
|
||||
|
|
Loading…
Reference in New Issue