diff options
author | jaseg <git@jaseg.de> | 2023-04-29 12:15:55 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-04-29 12:15:55 +0200 |
commit | fdb07ea26ef1cb6732f7b6181c68d73f06200519 (patch) | |
tree | 370e214550815791a62392d5c8306d5ef732d13f /gerbonara/aperture_macros | |
parent | 8d5403260b72115cfd9f401289dfd0f894e272ea (diff) | |
download | gerbonara-fdb07ea26ef1cb6732f7b6181c68d73f06200519.tar.gz gerbonara-fdb07ea26ef1cb6732f7b6181c68d73f06200519.tar.bz2 gerbonara-fdb07ea26ef1cb6732f7b6181c68d73f06200519.zip |
Fix incorrect aperture macro outline primitive point count
Diffstat (limited to 'gerbonara/aperture_macros')
-rw-r--r-- | gerbonara/aperture_macros/primitive.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/aperture_macros/primitive.py b/gerbonara/aperture_macros/primitive.py index 356da9f..38bd266 100644 --- a/gerbonara/aperture_macros/primitive.py +++ b/gerbonara/aperture_macros/primitive.py @@ -290,7 +290,7 @@ class Outline(Primitive): rotation = ConstantExpression(0) coords = ','.join(coord.to_gerber(unit) for coord in coords) - return f'{self.code},{self.exposure.to_gerber()},{len(self.coords)-1},{coords},{rotation.to_gerber()}' + return f'{self.code},{self.exposure.to_gerber()},{len(self.coords)//2-1},{coords},{rotation.to_gerber()}' def to_graphic_primitives(self, offset, rotation, variable_binding={}, unit=None, polarity_dark=True): with self.Calculator(self, variable_binding, unit) as calc: |