Draft: Fix patharray edge sort issue

If the user selects edges for the path of a patharray the edges need to be sorted before creating a Part.Wire from them.
This commit is contained in:
Roy-043
2021-07-01 10:51:56 +02:00
committed by Bernd Hahnebach
parent 095cbd28d0
commit 7f1a2d6c8d

View File

@@ -328,7 +328,7 @@ class PathArray(DraftLink):
for n in edgeNames:
e = sub[0].Shape.getElement(n)
sl.append(e)
return Part.Wire(sl)
return Part.Wire(Part.__sortEdges__(sl))
def onChanged(self, obj, prop):
"""Execute when a property is changed."""