summaryrefslogtreecommitdiff
path: root/gerber/primitives.py
diff options
context:
space:
mode:
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']