diff --git a/src/helper/blob-tools/blob.js b/src/helper/blob-tools/blob.js index 60615f8532..70c68b6be1 100644 --- a/src/helper/blob-tools/blob.js +++ b/src/helper/blob-tools/blob.js @@ -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