polygonWall: Fix numbers of callbacks

They were off by a factor of two as they should be numberd by sides
while we also counted corners
This commit is contained in:
Florian Festi 2023-02-12 13:27:35 +01:00
parent 201e0ae5d8
commit 940cec1811
1 changed files with 1 additions and 1 deletions

View File

@ -2700,7 +2700,7 @@ class Boxes:
length_correction = 0.
for i in range(0, len(borders), 2):
self.cc(callback, i)
self.cc(callback, i / 2)
self.edge(length_correction)
l = borders[i] - length_correction
next_angle = borders[i+1]