From 1becccb1525a25bca8ce2c8f8721570b07ae9450 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Mon, 13 Apr 2020 14:33:11 +0800 Subject: [PATCH] Path: fix path sort --- src/Mod/Path/App/Area.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Mod/Path/App/Area.cpp b/src/Mod/Path/App/Area.cpp index 1badf749da..c0f775879b 100644 --- a/src/Mod/Path/App/Area.cpp +++ b/src/Mod/Path/App/Area.cpp @@ -1189,10 +1189,8 @@ static int foreachSubshape(const TopoDS_Shape &shape, BRep_Builder builder; TopoDS_Compound comp; builder.MakeCompound(comp); - for(auto &s : openShapes) { - for(TopExp_Explorer it(s,TopAbs_EDGE); it.More(); it.Next()) - builder.Add(comp,s); - } + for(auto &s : openShapes) + builder.Add(comp,s); func(comp, TopAbs_COMPOUND); return TopAbs_COMPOUND; }