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:
parent
bfc710698f
commit
3e06ef3921
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue