DisplayShelf: Do not render front wall if set to zero
This commit is contained in:
parent
ebe02e2be5
commit
879ae1af68
|
@ -72,9 +72,13 @@ class DisplayShelf(Boxes): # change class name here and below
|
|||
self.rectangularWall(y, h, callback=[self.side], move="up")
|
||||
self.rectangularWall(y, h, callback=[self.side], move="up")
|
||||
|
||||
for i in range(self.num):
|
||||
self.rectangularWall(x, sl, "ffef", move="up")
|
||||
self.rectangularWall(x, f, "Ffef", move="up")
|
||||
if f:
|
||||
for i in range(self.num):
|
||||
self.rectangularWall(x, sl, "ffef", move="up")
|
||||
self.rectangularWall(x, f, "Ffef", move="up")
|
||||
else:
|
||||
for i in range(self.num):
|
||||
self.rectangularWall(x, sl, "Efef", move="up")
|
||||
|
||||
self.close()
|
||||
|
||||
|
|
Loading…
Reference in New Issue