summaryrefslogtreecommitdiff
path: root/gerber/primitives.py
diff options
context:
space:
mode:
authorGarret Fick <garret@ficksworkshop.com>2016-02-02 00:11:55 +0800
committerGarret Fick <garret@ficksworkshop.com>2016-02-02 00:11:55 +0800
commit5b93db47cd29e384ead918db1893f4cf58326f82 (patch)
tree3c0614481a14aaf465814be0fb88e90d294fde4b /gerber/primitives.py
parent96bdd0f59dbda9b755b0eb28eb44cb9a6eae1410 (diff)
downloadgerbonara-5b93db47cd29e384ead918db1893f4cf58326f82.tar.gz
gerbonara-5b93db47cd29e384ead918db1893f4cf58326f82.tar.bz2
gerbonara-5b93db47cd29e384ead918db1893f4cf58326f82.zip
Draw thermal aperture macros (as approximation)
Diffstat (limited to 'gerber/primitives.py')
-rw-r--r--gerber/primitives.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gerber/primitives.py b/gerber/primitives.py
index 944e34a..84115a6 100644
--- a/gerber/primitives.py
+++ b/gerber/primitives.py
@@ -730,7 +730,10 @@ class AMGroup(Primitive):
self.primitives = []
for amprim in amprimitives:
prim = amprim.to_primitive(self.units)
- if prim:
+ if isinstance(prim, list):
+ for p in prim:
+ self.primitives.append(p)
+ elif prim:
self.primitives.append(prim)
self._position = None
self._to_convert = ['arimitives']