From 90c783568fb80acd0ba1da540a16b1cff1fc4352 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Mon, 19 Oct 2020 21:00:38 +0200 Subject: [PATCH] OttoBody: Fix issue with HexHoles that broke the generator Thanks to https://github.com/ottobot42 for reporting. Resolves: #250 --- boxes/generators/ottobody.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boxes/generators/ottobody.py b/boxes/generators/ottobody.py index 63eb9ba..aa57edb 100644 --- a/boxes/generators/ottobody.py +++ b/boxes/generators/ottobody.py @@ -42,7 +42,8 @@ class OttoBody(Boxes): self.rectangularHole(self.x-7, self.y-2.8, 7, 4) self.moveTo(0, self.y-12) - self.hexHolesCircle(12, (1, 2, 'circle')) + self.hexHolesCircle(12, HexHolesSettings( + self, diameter=2, distance=2, style='circle')) def leftBottomCB(self): self.hole(7, self.y-7, 6)