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
|
@ -2102,6 +2102,10 @@ class Boxes:
|
||||||
if symetrical:
|
if symetrical:
|
||||||
if part_cnt % 2:
|
if part_cnt % 2:
|
||||||
left, right = lf, rf
|
left, right = lf, rf
|
||||||
|
else:
|
||||||
|
# last part of an uneven lot
|
||||||
|
if (part_cnt == (len(borders)//2)-1):
|
||||||
|
left, right = lF, rf
|
||||||
else:
|
else:
|
||||||
left, right = lF, rF
|
left, right = lF, rF
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue