Console: Fix for front_height == 0
Thanks to dougw (https://hackaday.io/hacker/885177-dougw) for pointing this out!
This commit is contained in:
parent
262d7804a4
commit
3dc5aa997c
|
@ -55,6 +55,9 @@ class Console(Boxes):
|
||||||
else:
|
else:
|
||||||
borders = [y, 90, hf, 90-self.angle, panel, self.angle+90, h, 90]
|
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.polygonWall(borders, move="right")
|
self.polygonWall(borders, move="right")
|
||||||
self.polygonWalls(borders, x)
|
self.polygonWalls(borders, x)
|
||||||
|
|
Loading…
Reference in New Issue