From 7f1a2d6c8db25b02320f96049403b962c42e6ec0 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Thu, 1 Jul 2021 10:51:56 +0200 Subject: [PATCH] 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. --- src/Mod/Draft/draftobjects/patharray.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Draft/draftobjects/patharray.py b/src/Mod/Draft/draftobjects/patharray.py index e85007cd5a..264964e775 100644 --- a/src/Mod/Draft/draftobjects/patharray.py +++ b/src/Mod/Draft/draftobjects/patharray.py @@ -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."""