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:
parent
e2d716aeb8
commit
949c8d8324
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue