From e3035da713a58e53c7191054302cfc6eaabb1007 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Tue, 1 Aug 2017 21:19:01 +0200 Subject: [PATCH] OttoBody: Move hole for push button --- boxes/generators/ottobody.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boxes/generators/ottobody.py b/boxes/generators/ottobody.py index 5a34e60..fdc96f5 100644 --- a/boxes/generators/ottobody.py +++ b/boxes/generators/ottobody.py @@ -117,7 +117,7 @@ class OttoBody(Boxes): self.rectangularWall(x, hl-hx, "pfFf", ignore_widths=[1], move="up") self.moveTo(-hx) self.rectangularWall(x, h-hx, "Ffof", ignore_widths=[5], callback=[ - None, None, lambda: self.rectangularHole(7.5, 7.5, 6.2, 7.)], + lambda: self.rectangularHole(y-7.5, h-4-7.5, 6.2, 7.)], move="up") self.rectangularWall(x, hl-hx, "PfFf", ignore_widths=[6], callback=[None, None, self.IOCB], move="up")