diff --git a/src/Mod/Path/PathScripts/PathAreaOp.py b/src/Mod/Path/PathScripts/PathAreaOp.py index 158eb9e8b712..9b7d0dff4451 100644 --- a/src/Mod/Path/PathScripts/PathAreaOp.py +++ b/src/Mod/Path/PathScripts/PathAreaOp.py @@ -249,6 +249,16 @@ def opExecute(self, obj, getsim=False): shapes = self.areaOpShapes(obj) + jobs = [{ + 'x': s[0].BoundBox.XMin, + 'y': s[0].BoundBox.YMin, + 'shape': s + } for s in shapes] + + jobs = PathUtils.sort_jobs(jobs, ['x', 'y']) + + shapes = [j['shape'] for j in jobs] + sims = [] for (shape, isHole) in shapes: try: