diff --git a/engine/src/tools/Brush.js b/engine/src/tools/Brush.js index 1dc54932d..50fe2afeb 100644 --- a/engine/src/tools/Brush.js +++ b/engine/src/tools/Brush.js @@ -522,6 +522,7 @@ Wick.Tools.Brush = class extends Wick.Tool { var mask = null; layer.children.forEach(otherPath => { if(otherPath === mask) return; + if(!(otherPath instanceof this.paper.Path || otherPath instanceof this.paper.CompoundPath)) return; if(mask) { var newMask = mask.unite(otherPath);