From 415bdbc2e4339d370afcd779344ea66e39ba6b0a Mon Sep 17 00:00:00 2001 From: Marin Mikaƫl <41113988+MarinMikael@users.noreply.github.com> Date: Wed, 24 Jul 2019 01:20:15 +0900 Subject: Update am_primitive.py Fix bug when circle doesn't have any rotation by adding a default 0 degree rotation. --- gerberex/am_primitive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gerberex') 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): -- cgit