Skip to content

Commit

Permalink
Skip processing of child paths in mergeEraser
Browse files Browse the repository at this point in the history
  • Loading branch information
adroitwhiz committed Jan 9, 2020
1 parent cfa7896 commit 1952b90
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/helper/blob-tools/blob.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,12 @@ class Blobbiness {
class: paper.PathItem
});
}

for (let i = items.length - 1; i >= 0; i--) {
// If a path is part of a compound path, that parent path will later be processed.
// Skip processing the child path so as not to double-process it.
if (items[i].parent instanceof paper.CompoundPath) continue;

// TODO handle compound paths
if (items[i] instanceof paper.Path && (!items[i].fillColor || items[i].fillColor._alpha === 0)) {
// Gather path segments
Expand Down

0 comments on commit 1952b90

Please sign in to comment.