Skip to content

Commit

Permalink
DividerTray: Fix bottom edge for middle walls
Browse files Browse the repository at this point in the history
  • Loading branch information
florianfesti committed May 22, 2020
1 parent c0a3175 commit c978266
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion boxes/generators/dividertray.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,13 @@ def render(self):
# Side walls (outer & inner) with slots to support dividers
side_wall_length = slot_descriptions.total_length()
for _ in range(side_walls_number):
if _ < side_walls_number - (len(self.sx) - 1):
be = "F" if self.bottom else "e"
else:
be = "f" if self.bottom else "e"
se = DividerSlotsEdge(self, slot_descriptions.descriptions)
self.rectangularWall(
side_wall_length, self.h, [bottom_edge(self.bottom), "f", se, "f"], move="up"
side_wall_length, self.h, [be, "f", se, "f"], move="up"
)

# Switch to right side of the file
Expand Down

0 comments on commit c978266

Please sign in to comment.