Fix polygonWalls() for uneven number of walls and symetrical==True

For an uneven number of walls one needs to have two different edges
to be able to close the loop.
This commit is contained in:
Florian Festi 2020-05-02 00:43:33 +02:00
parent e2d716aeb8
commit 949c8d8324
1 changed files with 5 additions and 1 deletions

View File

@ -2103,7 +2103,11 @@ class Boxes:
if part_cnt % 2:
left, right = lf, rf
else:
left, right = lF, rF
# last part of an uneven lot
if (part_cnt == (len(borders)//2)-1):
left, right = lF, rf
else:
left, right = lF, rF
else:
left, right = lf, rF