summaryrefslogtreecommitdiff
path: root/gerberex
diff options
context:
space:
mode:
Diffstat (limited to 'gerberex')
-rw-r--r--gerberex/am_primitive.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerberex/am_primitive.py b/gerberex/am_primitive.py
index df55573..a3ad824 100644
--- a/gerberex/am_primitive.py
+++ b/gerberex/am_primitive.py
@@ -56,7 +56,7 @@ class AMCirclePrimitiveDef(AMPrimitiveDef):
diameter = modifiers[1]
center_x = modifiers[2]
center_y = modifiers[3]
- rotation = modifiers[4]
+ rotation = modifiers[4] if len(modifiers)>4 else AMConstantExpression(float(0))
return cls(code, exposure, diameter, center_x, center_y, rotation)
def __init__(self, code, exposure, diameter, center_x, center_y, rotation):