From a0f8fdd975ea4ec6fa9bc693b8b7fc663f9d8c65 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sat, 6 Nov 2021 22:44:23 +0100 Subject: [PATCH] TypeTray: Fix front when back_height is set Side edges did not fit into side walls. Resolves: #336 Thanks to https://github.com/RestlessRabbits for reporting! --- boxes/generators/typetray.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/boxes/generators/typetray.py b/boxes/generators/typetray.py index 6f4e20b..4c9ce46 100644 --- a/boxes/generators/typetray.py +++ b/boxes/generators/typetray.py @@ -111,9 +111,14 @@ class TypeTray(_TopEdge): callback=[self.xHoles, None, self.gripHole], ignore_widths=[] if bh else [1, 6], move="up") - self.rectangularWall(x, h, [b, "F", t3, "F"], - callback=[self.mirrorX(self.xHoles, x), ], - ignore_widths=[1, 6], move="up") + if bh: + self.rectangularWall(x, h, [b, "f", t3, "f"], + callback=[self.mirrorX(self.xHoles, x), ], + move="up") + else: + self.rectangularWall(x, h, [b, "F", t3, "F"], + callback=[self.mirrorX(self.xHoles, x), ], + ignore_widths=[1, 6], move="up") # floor if b != "e":