polygonWall: Make sure callback indexes are int

Was broken by 940cec1811

Resolves HeartBox failing

Thanks to noel hanback <https://hackaday.io/hacker/1310423-noel-hanback>
for reporting.
This commit is contained in:
Florian Festi 2023-02-14 14:34:52 +01:00
parent bfc710698f
commit 3e06ef3921
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 / 2)
self.cc(callback, i // 2)
self.edge(length_correction)
l = borders[i] - length_correction
next_angle = borders[i+1]