Console: Fix for front_height == 0

Thanks to dougw (https://hackaday.io/hacker/885177-dougw) for pointing
this out!
This commit is contained in:
Florian Festi 2020-07-23 16:19:56 +02:00
parent 262d7804a4
commit 3dc5aa997c
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,9 @@ class Console(Boxes):
else:
borders = [y, 90, hf, 90-self.angle, panel, self.angle+90, h, 90]
if hf < 0.01*t:
borders[1:4] = [180-self.angle]
self.polygonWall(borders, move="right")
self.polygonWall(borders, move="right")
self.polygonWalls(borders, x)