Skip to content

Commit

Permalink
Path: sort shapes in PathAreaOp before executing
Browse files Browse the repository at this point in the history
  • Loading branch information
m0n5t3r authored and wwmayer committed Mar 30, 2019
1 parent 64df37a commit 423830b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Mod/Path/PathScripts/PathAreaOp.py
Expand Up @@ -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:
Expand Down

0 comments on commit 423830b

Please sign in to comment.