Fix ChestHingePin for finger_joints_on_lid

The F edge needs to be padded by straight edges to have the same length
as the nominal length of the whole edge.

Fixes DiceBox.

Thanks to Kevin Hodder <https://github.com/KevinHodder> for reporting

Resolves: #569
This commit is contained in:
Florian Festi 2023-07-09 22:33:04 +02:00
parent 7b4cc709c7
commit dd3752eefd
1 changed files with 1 additions and 1 deletions

View File

@ -1696,7 +1696,7 @@ class ChestHingePin(BaseEdge):
if self.settings.finger_joints_on_lid:
middle_segment = [0]
draw_rest_of_edge = lambda: self.edges["F"](l + 2 * t)
draw_rest_of_edge = lambda: (self.edge(t), self.edges["F"](l), self.edge(t))
else:
middle_segment = [l + 2 * t, ]
draw_rest_of_edge = lambda: None